Class WebhookProcessorListenersHandler
java.lang.Object
com.cloudbees.jenkins.plugins.bitbucket.hooks.WebhookProcessorListenersHandler
- All Implemented Interfaces:
BitbucketWebhookProcessorListener,ExtensionPoint
public class WebhookProcessorListenersHandler
extends Object
implements BitbucketWebhookProcessorListener
-
Nested Class Summary
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidNotify of failure while processing the incoming webhook.voidonProcess(String eventType, String body, BitbucketEndpoint endpoint) Notify after the processor has processed the incoming webhook payload.voidonStart(Class<? extends BitbucketWebhookProcessor> processorClass) Notify when the processor has been matches.
-
Constructor Details
-
WebhookProcessorListenersHandler
public WebhookProcessorListenersHandler()
-
-
Method Details
-
onStart
Description copied from interface:BitbucketWebhookProcessorListenerNotify when the processor has been matches.- Specified by:
onStartin interfaceBitbucketWebhookProcessorListener- Parameters:
processorClass- class
-
onFailure
Description copied from interface:BitbucketWebhookProcessorListenerNotify of failure while processing the incoming webhook.- Specified by:
onFailurein interfaceBitbucketWebhookProcessorListener- Parameters:
e- exception raised by webhook consumer or by processor.
-
onProcess
Description copied from interface:BitbucketWebhookProcessorListenerNotify after the processor has processed the incoming webhook payload.- Specified by:
onProcessin interfaceBitbucketWebhookProcessorListener- Parameters:
eventType- of incoming requestbody- content that comes with incoming requestendpoint- that match the incoming request
-