Interface BitbucketAuthenticatedClient
- All Superinterfaces:
AutoCloseable
The implementation provides an authenticated client for a configured
Bitbucket endpoint.
- Since:
- 937.0.0
- Author:
- Nikolas Falco
- API Note:
- This interface is intended to be consumed in an extension point.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
Perform an HTTP DELETE to the configured endpoint.Perform an HTTP GET to the configured endpoint.Name of the repository where register the webhook.The owner of the repository where register the webhook.default String
Perform an HTTP POST to the configured endpoint.default String
Perform an HTTP PUT to the configured endpoint.
-
Method Details
-
getRepositoryOwner
The owner of the repository where register the webhook. -
getRepositoryName
Name of the repository where register the webhook. -
post
Perform an HTTP POST to the configured endpoint.Request will be sent as JSON
- Parameters:
path
- to call, it will prepend with the server URLpayload
- to send- Returns:
- the JSON string of the response
- Throws:
IOException
- in case of connection failures
-
post
- Throws:
IOException
-
put
Perform an HTTP PUT to the configured endpoint.Request will be sent as JSON
- Parameters:
path
- to call, it will prepend with the server URLpayload
- to send- Returns:
- the JSON string of the response
- Throws:
IOException
- in case of connection failures
-
put
- Throws:
IOException
-
delete
Perform an HTTP DELETE to the configured endpoint.Request will be sent as JSON
- Parameters:
path
- to call, it will prepend with the server URL- Returns:
- the JSON string of the response
- Throws:
IOException
- in case of connection failures
-
get
Perform an HTTP GET to the configured endpoint.Request will be sent as JSON
- Parameters:
path
- to call, it will prepend with the server URL- Returns:
- the JSON string of the response
- Throws:
IOException
- in case of connection failures
-
close
- Specified by:
close
in interfaceAutoCloseable
- Throws:
IOException
-