Class CloudPushWebhookProcessor
java.lang.Object
com.cloudbees.jenkins.plugins.bitbucket.impl.webhook.AbstractWebhookProcessor
com.cloudbees.jenkins.plugins.bitbucket.impl.webhook.cloud.CloudPushWebhookProcessor
- All Implemented Interfaces:
- BitbucketWebhookProcessor,- ExtensionPoint
@Extension
@Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class)
@RestrictedSince("933.3.0")
public class CloudPushWebhookProcessor
extends AbstractWebhookProcessor
- 
Nested Class SummaryNested classes/interfaces inherited from interface hudson.ExtensionPointExtensionPoint.LegacyInstancesAreScopedToHudson
- 
Field SummaryFields inherited from class com.cloudbees.jenkins.plugins.bitbucket.impl.webhook.AbstractWebhookProcessorEVENT_TYPE_HEADER, logger, REQUEST_ID_CLOUD_HEADER, REQUEST_ID_SERVER_HEADER, SERVER_URL_PARAMETER, SIGNATURE_HEADERFields inherited from interface com.cloudbees.jenkins.plugins.bitbucket.api.webhook.BitbucketWebhookProcessorSCAN_ON_EMPTY_CHANGES_PROPERTY_NAME
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionbooleancanHandle(Map<String, String> headers, org.apache.commons.collections4.MultiValuedMap<String, String> parameters) Called by first for this processor that must respond if is able to handle this specific requestgetServerURL(Map<String, String> headers, org.apache.commons.collections4.MultiValuedMap<String, String> parameters) Extracts the server URL from where this request coming from, the URL must match one of the configuredBitbucketEndpoints.voidprocess(String hookEventType, String payload, Map<String, Object> context, BitbucketEndpoint endpoint) See Event Payloads for more information about the payload parameter format.Methods inherited from class com.cloudbees.jenkins.plugins.bitbucket.impl.webhook.AbstractWebhookProcessorgetEventType, getOrigin, scmSourceReIndex, verifyPayloadMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.cloudbees.jenkins.plugins.bitbucket.api.webhook.BitbucketWebhookProcessorbuildHookContext, notifyEvent, reindexOnEmptyChanges
- 
Constructor Details- 
CloudPushWebhookProcessorpublic CloudPushWebhookProcessor()
 
- 
- 
Method Details- 
canHandlepublic boolean canHandle(Map<String, String> headers, org.apache.commons.collections4.MultiValuedMap<String, String> parameters) Description copied from interface:BitbucketWebhookProcessorCalled by first for this processor that must respond if is able to handle this specific request- Parameters:
- headers- request
- parameters- request
- Returns:
- trueif this processor is able to handle this hook request,- falseotherwise.
 
- 
getServerURL@NonNull public String getServerURL(@NonNull Map<String, String> headers, @NonNull org.apache.commons.collections4.MultiValuedMap<String, String> parameters) Description copied from interface:BitbucketWebhookProcessorExtracts the server URL from where this request coming from, the URL must match one of the configuredBitbucketEndpoints.- Specified by:
- getServerURLin interface- BitbucketWebhookProcessor
- Overrides:
- getServerURLin class- AbstractWebhookProcessor
- Parameters:
- headers- request
- parameters- request
- Returns:
- the URL of the server from where this request has been sent.
 
- 
processpublic void process(@NonNull String hookEventType, @NonNull String payload, @NonNull Map<String, Object> context, @NonNull BitbucketEndpoint endpoint) Description copied from interface:BitbucketWebhookProcessorSee Event Payloads for more information about the payload parameter format.- Parameters:
- hookEventType- the type of hook event.
- payload- the hook payload
- context- build from incoming request
- endpoint- configured in the Jenkins global page
 
 
-