Class BitbucketClientFactoryProvider

java.lang.Object
com.atlassian.bitbucket.jenkins.internal.client.BitbucketClientFactoryProvider

@ThreadSafe @Singleton public class BitbucketClientFactoryProvider extends Object
Client factory provider, use to ensure that expensive objects are only created once and re-used.
  • Constructor Details

    • BitbucketClientFactoryProvider

      @Inject public BitbucketClientFactoryProvider(HttpRequestExecutor httpRequestExecutor)
  • Method Details

    • getClient

      public BitbucketClientFactory getClient(String baseUrl, BitbucketCredentials credentials)
      Return a client factory for the given base URL.
      Parameters:
      baseUrl - the URL to connect to
      credentials - the credentials to use while making the HTTP request
      Returns:
      a ready to use client factory