Class BitbucketClientFactoryImpl
- java.lang.Object
 - 
- com.atlassian.bitbucket.jenkins.internal.client.BitbucketClientFactoryImpl
 
 
- 
- All Implemented Interfaces:
 BitbucketClientFactory
public class BitbucketClientFactoryImpl extends Object implements BitbucketClientFactory
 
- 
- 
Field Summary
Fields Modifier and Type Field Description static longCAPABILITIES_CACHE_DURATIONCache duration for the capabilities response. 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BitbucketAuthenticatedUserClientgetAuthenticatedUserClient()Return a client that can return the username for the credentials used.BitbucketCapabilitiesClientgetCapabilityClient()Construct a client that can retrieve the advertised capabilities from Bitbucket.BitbucketMirrorClientgetMirroredRepositoriesClient(int repositoryId)Construct a client that can retrieve the list of mirrored repositories for a givenrepoIdfrom Bitbucket.BitbucketProjectClientgetProjectClient(String projectKey)Return a project client.BitbucketSearchClientgetSearchClient(String projectName)Return a search client 
 - 
 
- 
- 
Method Detail
- 
getAuthenticatedUserClient
public BitbucketAuthenticatedUserClient getAuthenticatedUserClient()
Description copied from interface:BitbucketClientFactoryReturn a client that can return the username for the credentials used.- Specified by:
 getAuthenticatedUserClientin interfaceBitbucketClientFactory- Returns:
 - a client that is ready to use
 
 
- 
getCapabilityClient
public BitbucketCapabilitiesClient getCapabilityClient()
Description copied from interface:BitbucketClientFactoryConstruct a client that can retrieve the advertised capabilities from Bitbucket. The client is thread safe and can be used multiple times.- Specified by:
 getCapabilityClientin interfaceBitbucketClientFactory- Returns:
 - a client that is ready to use
 
 
- 
getMirroredRepositoriesClient
public BitbucketMirrorClient getMirroredRepositoriesClient(int repositoryId)
Description copied from interface:BitbucketClientFactoryConstruct a client that can retrieve the list of mirrored repositories for a givenrepoIdfrom Bitbucket.- Specified by:
 getMirroredRepositoriesClientin interfaceBitbucketClientFactory- Parameters:
 repositoryId- the repositoryId- Returns:
 - a client that is ready to use
 
 
- 
getProjectClient
public BitbucketProjectClient getProjectClient(String projectKey)
Description copied from interface:BitbucketClientFactoryReturn a project client.- Specified by:
 getProjectClientin interfaceBitbucketClientFactory- Returns:
 - a client that is ready to use
 
 
- 
getSearchClient
public BitbucketSearchClient getSearchClient(String projectName)
Description copied from interface:BitbucketClientFactoryReturn a search client- Specified by:
 getSearchClientin interfaceBitbucketClientFactory- Parameters:
 projectName- the project name to search for- Returns:
 - a client that is ready to use
 
 
 - 
 
 -