Class ServerPingWebhookProcessor
java.lang.Object
com.cloudbees.jenkins.plugins.bitbucket.impl.webhook.AbstractWebhookProcessor
com.cloudbees.jenkins.plugins.bitbucket.impl.webhook.server.ServerPingWebhookProcessor
- All Implemented Interfaces:
- BitbucketWebhookProcessor,- ExtensionPoint
@Extension
@Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class)
@RestrictedSince("933.3.0")
public class ServerPingWebhookProcessor
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, 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 requestvoidSee Event Payloads for more information about the payload parameter format.voidverifyPayload(Map<String, String> headers, String body, BitbucketEndpoint endpoint) The implementation must verify if the incoming request is secured or not eventually gather some settings from the givenBitbucketEndpointconfiguration.Methods inherited from class com.cloudbees.jenkins.plugins.bitbucket.impl.webhook.AbstractWebhookProcessorgetEventType, getOrigin, getServerURL, scmSourceReIndexMethods 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- 
ServerPingWebhookProcessorpublic ServerPingWebhookProcessor()
 
- 
- 
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.
 
- 
verifyPayloadDescription copied from interface:BitbucketWebhookProcessorThe implementation must verify if the incoming request is secured or not eventually gather some settings from the givenBitbucketEndpointconfiguration.- Specified by:
- verifyPayloadin interface- BitbucketWebhookProcessor
- Overrides:
- verifyPayloadin class- AbstractWebhookProcessor
- Parameters:
- headers- request
- body- request
- endpoint- configured for the given- BitbucketWebhookProcessor.getServerURL(Map, MultiValuedMap)
 
- 
processpublic void process(@NonNull String eventType, @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:
- eventType- the type of hook event.
- payload- the hook payload
- context- build from incoming request
- endpoint- configured in the Jenkins global page
 
 
-