Interface BitbucketProjectClient
- All Known Implementing Classes:
BitbucketProjectClientImpl
public interface BitbucketProjectClient
Client to get a project from the Bitbucket server.
-
Method Summary
Modifier and TypeMethodDescriptionGet the project associated with the given project keygetRepositoryClient(String repositorySlug) Return a repository search client
-
Method Details
-
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
Return a repository search client- Parameters:
repositorySlug- the repository slug- Returns:
- a client that is ready to use
-