Interface BitbucketCapabilitiesClient
-
- All Known Implementing Classes:
BitbucketCapabilitiesClientImpl
public interface BitbucketCapabilitiesClient
Client to get capabilities from the remote server.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description BitbucketCICapabilities
getCICapabilities()
Get the supported ci capabilities of the linked Bitbucket Server.BitbucketDeploymentCapabilities
getDeploymentCapabilities()
Get the supported deployment capabilities of the linked Bitbucket Server.AtlassianServerCapabilities
getServerCapabilities()
Get the server capabilitiesBitbucketWebhookSupportedEvents
getWebhookSupportedEvents()
Get the supported webhook events of the linked Bitbucket Server.
-
-
-
Method Detail
-
getCICapabilities
BitbucketCICapabilities getCICapabilities()
Get the supported ci capabilities of the linked Bitbucket Server.- Returns:
- the supported capabilities
- 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
-
getDeploymentCapabilities
BitbucketDeploymentCapabilities getDeploymentCapabilities()
Get the supported deployment capabilities of the linked Bitbucket Server.- Returns:
- the supported capabilities
- 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- Since:
- 3.1.0
-
getServerCapabilities
AtlassianServerCapabilities getServerCapabilities()
Get the server capabilities- Returns:
- the capabilities of the linked Bitbucket Server
- 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
-
getWebhookSupportedEvents
BitbucketWebhookSupportedEvents getWebhookSupportedEvents() throws BitbucketMissingCapabilityException
Get the supported webhook events of the linked Bitbucket Server.- Returns:
- the supported events
- 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 capturedBitbucketMissingCapabilityException
-
-