Class ServerPushWebhookProcessor
java.lang.Object
com.cloudbees.jenkins.plugins.bitbucket.impl.webhook.AbstractWebhookProcessor
com.cloudbees.jenkins.plugins.bitbucket.impl.webhook.server.ServerPushWebhookProcessor
- All Implemented Interfaces:
BitbucketWebhookProcessor
,ExtensionPoint
@Extension
@Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class)
@RestrictedSince("933.3.0")
public class ServerPushWebhookProcessor
extends AbstractWebhookProcessor
-
Nested Class Summary
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
Field Summary
Fields inherited from class com.cloudbees.jenkins.plugins.bitbucket.impl.webhook.AbstractWebhookProcessor
EVENT_TYPE_HEADER, REQUEST_ID_CLOUD_HEADER, REQUEST_ID_SERVER_HEADER, SERVER_URL_PARAMETER, SIGNATURE_HEADER
Fields inherited from interface com.cloudbees.jenkins.plugins.bitbucket.api.webhook.BitbucketWebhookProcessor
SCAN_ON_EMPTY_CHANGES_PROPERTY_NAME
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
canHandle
(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 requestvoid
process
(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.AbstractWebhookProcessor
getEventType, getOrigin, getServerURL, scmSourceReIndex, verifyPayload
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.BitbucketWebhookProcessor
buildHookContext, notifyEvent, reindexOnEmptyChanges
-
Constructor Details
-
ServerPushWebhookProcessor
public ServerPushWebhookProcessor()
-
-
Method Details
-
canHandle
public boolean canHandle(Map<String, String> headers, org.apache.commons.collections4.MultiValuedMap<String, String> parameters) Description copied from interface:BitbucketWebhookProcessor
Called by first for this processor that must respond if is able to handle this specific request- Parameters:
headers
- requestparameters
- request- Returns:
true
if this processor is able to handle this hook request,false
otherwise.
-
process
public void process(@NonNull String hookEventType, @NonNull String payload, @NonNull Map<String, Object> context, @NonNull BitbucketEndpoint endpoint) Description copied from interface:BitbucketWebhookProcessor
See Event Payloads for more information about the payload parameter format.- Parameters:
hookEventType
- the type of hook event.payload
- the hook payloadcontext
- build from incoming requestendpoint
- configured in the Jenkins global page
-