Class 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 Detail

      • BitbucketClientFactoryProvider

        @Inject
        public BitbucketClientFactoryProvider​(HttpRequestExecutor httpRequestExecutor)
    • Method Detail

      • 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