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 Summary
Constructors Constructor Description BitbucketClientFactoryProvider(HttpRequestExecutor httpRequestExecutor) 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BitbucketClientFactorygetClient(String baseUrl, BitbucketCredentials credentials)Return a client factory for the given base URL. 
 - 
 
- 
- 
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 tocredentials- the credentials to use while making the HTTP request- Returns:
 - a ready to use client factory
 
 
 - 
 
 -