Class AbstractWebhookManager<T extends AbstractBitbucketWebhookConfiguration>
java.lang.Object
com.cloudbees.jenkins.plugins.bitbucket.impl.webhook.AbstractWebhookManager<T>
- All Implemented Interfaces:
BitbucketWebhookManager,ExtensionPoint
- Direct Known Subclasses:
CloudWebhookManager,ServerWebhookManager
public abstract class AbstractWebhookManager<T extends AbstractBitbucketWebhookConfiguration>
extends Object
implements BitbucketWebhookManager
-
Nested Class Summary
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidapply(BitbucketWebhookConfiguration configuration) The configuration that returned this implementation class.protected Stringprotected Stringprotected booleanvoidsetCallbackURL(String callbackURL, BitbucketEndpoint endpoint) The callback URL where send event payload.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.cloudbees.jenkins.plugins.bitbucket.api.webhook.BitbucketWebhookManager
apply, read, register, remove, supportedTraits, withTraits
-
Field Details
-
configuration
-
callbackURL
-
-
Constructor Details
-
AbstractWebhookManager
public AbstractWebhookManager()
-
-
Method Details
-
setCallbackURL
Description copied from interface:BitbucketWebhookManagerThe callback URL where send event payload.The method is called with the URL of the default receiver and processed using an appropriate
BitbucketWebhookProcessor. The implementation could decide to ignore given URL and use an own servlet endpoint to process own events.- Specified by:
setCallbackURLin interfaceBitbucketWebhookManager- Parameters:
callbackURL- used to send webhook payload.endpoint- this webhook is registered for, it could be used to retrieve additional information to compose the callbackURL
-
apply
Description copied from interface:BitbucketWebhookManagerThe configuration that returned this implementation class.- Specified by:
applyin interfaceBitbucketWebhookManager- Parameters:
configuration- to apply
-
buildCacheKey
-
isCacheEnabled
-
getEndpointJenkinsRootURL
-