Interface BitbucketProjectClient
-
- All Known Implementing Classes:
BitbucketProjectClientImpl
public interface BitbucketProjectClient
Client to get a project from the Bitbucket server.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description BitbucketProject
getProject()
Get the project associated with the given project keyBitbucketRepositoryClient
getRepositoryClient(String repositorySlug)
Return a repository search client
-
-
-
Method Detail
-
getProject
BitbucketProject getProject()
Get the project associated with the given project key- Returns:
- the result of the call
- Throws:
AuthorizationException
- if the credentials did not allow access to the given urlNoContentException
- if the server did not respond with a bodyConnectionFailureException
- if the server did not respondNotFoundException
- if the requested url does not existBadRequestException
- if the request was malformed and thus rejected by the serverServerErrorException
- if the server failed to process the requestBitbucketClientException
- for all errors not already captured
-
getRepositoryClient
BitbucketRepositoryClient getRepositoryClient(String repositorySlug)
Return a repository search client- Parameters:
repositorySlug
- the repository slug- Returns:
- a client that is ready to use
-
-