Class AbstractBitbucketWebhookConfiguration
java.lang.Object
com.cloudbees.jenkins.plugins.bitbucket.impl.webhook.AbstractBitbucketWebhookConfiguration
- All Implemented Interfaces:
BitbucketWebhookConfiguration
,Describable<BitbucketWebhookConfiguration>
- Direct Known Subclasses:
CloudWebhookConfiguration
,ServerWebhookConfiguration
@Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class)
public abstract class AbstractBitbucketWebhookConfiguration
extends Object
implements BitbucketWebhookConfiguration
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
AbstractBitbucketWebhookConfiguration
(boolean manageHooks, String credentialsId, boolean enableHookSignature, String hookSignatureCredentialsId) -
Method Summary
Modifier and TypeMethodDescriptionfinal String
Returns theIdCredentials.getId()
of the credentials to use for auto-management of hooks.Name to use to describe the hook implementation.A custom Jenkins root URL to be used by the webhook implementation as part of the receiver callback endpoint.boolean
final boolean
Returnstrue
if and only if Jenkins is supposed to auto-manage hooks for this end-point.void
setEndpointJenkinsRootURL
(String endpointJenkinsRootURL) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.cloudbees.jenkins.plugins.bitbucket.api.webhook.BitbucketWebhookConfiguration
getDescriptor, getId, getManager
-
Constructor Details
-
AbstractBitbucketWebhookConfiguration
-
-
Method Details
-
isManageHooks
public final boolean isManageHooks()Returnstrue
if and only if Jenkins is supposed to auto-manage hooks for this end-point.- Specified by:
isManageHooks
in interfaceBitbucketWebhookConfiguration
- Returns:
true
if and only if Jenkins is supposed to auto-manage hooks for this end-point.
-
getCredentialsId
Returns theIdCredentials.getId()
of the credentials to use for auto-management of hooks.- Specified by:
getCredentialsId
in interfaceBitbucketWebhookConfiguration
- Returns:
- the
IdCredentials.getId()
of the credentials to use for auto-management of hooks.
-
getHookSignatureCredentialsId
-
isEnableHookSignature
public boolean isEnableHookSignature() -
getEndpointJenkinsRootURL
Description copied from interface:BitbucketWebhookConfiguration
A custom Jenkins root URL to be used by the webhook implementation as part of the receiver callback endpoint.The returned value must ensure that ends with a slash
/
- Specified by:
getEndpointJenkinsRootURL
in interfaceBitbucketWebhookConfiguration
- Returns:
- the verbatim setting provided by endpoint configuration
-
setEndpointJenkinsRootURL
-
getDisplayName
Description copied from interface:BitbucketWebhookConfiguration
Name to use to describe the hook implementation.- Specified by:
getDisplayName
in interfaceBitbucketWebhookConfiguration
- Returns:
- the name to use for the implementation
-