Interface BitbucketWebhookClient
- 
- All Known Implementing Classes:
 BitbucketWebhookClientImpl
public interface BitbucketWebhookClientA client to query for and register webhooks in Bitbucket Server. 
- 
- 
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voiddeleteWebhook(int webhookId)deletes a webhook with given idStream<BitbucketWebhook>getWebhooks(String... eventId)Returns a stream of existing webhooks.BitbucketWebhookregisterWebhook(BitbucketWebhookRequest request)Registers the given webhook in the Bitbucket Server.BitbucketWebhookupdateWebhook(int id, BitbucketWebhookRequest request)Updates the existing webhook 
 - 
 
- 
- 
Method Detail
- 
getWebhooks
Stream<BitbucketWebhook> getWebhooks(String... eventId)
Returns a stream of existing webhooks. Result could be further filtered by passing in event id filters. every subsequent fetch ofBitbucketPageresults in a remote call to Bitbucket server.- Parameters:
 eventId- , Event id filters. These ids are the same as the one recieved asBitbucketWebhookSupportedEvents- Returns:
 - a stream of webhooks.
 
 
- 
registerWebhook
BitbucketWebhook registerWebhook(BitbucketWebhookRequest request)
Registers the given webhook in the Bitbucket Server.- Parameters:
 request- Webhook details- Returns:
 - returns the registered webhook
 
 
- 
deleteWebhook
void deleteWebhook(int webhookId)
deletes a webhook with given id- Parameters:
 webhookId- , webhook id.
 
- 
updateWebhook
BitbucketWebhook updateWebhook(int id, BitbucketWebhookRequest request)
Updates the existing webhook- Parameters:
 id- webhook identifierrequest- webhook with update field- Returns:
 - updated webhook
 
 
 - 
 
 -