Class PostWebhooksPullRequestProcessor
java.lang.Object
io.jenkins.plugins.bitbucket.webhook.moveworkforward.processor.PostWebhooksPullRequestProcessor
- All Implemented Interfaces:
com.cloudbees.jenkins.plugins.bitbucket.api.webhook.BitbucketWebhookProcessor,ExtensionPoint
-
Nested Class Summary
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson -
Field Summary
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 TypeMethodDescriptionbooleancanHandle(Map<String, String> headers, org.apache.commons.collections4.MultiValuedMap<String, String> parameters) getEventType(Map<String, String> headers, org.apache.commons.collections4.MultiValuedMap<String, String> parameters) protected StringgetServerURL(Map<String, String> headers, org.apache.commons.collections4.MultiValuedMap<String, String> parameters) protected List<PostWebhooksEventType>voidprocess(String hookEventType, String payload, Map<String, Object> context, com.cloudbees.jenkins.plugins.bitbucket.api.endpoint.BitbucketEndpoint endpoint) voidverifyPayload(Map<String, String> headers, String payload, com.cloudbees.jenkins.plugins.bitbucket.api.endpoint.BitbucketEndpoint endpoint) 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.BitbucketWebhookProcessor
buildHookContext, notifyEvent, reindexOnEmptyChanges
-
Constructor Details
-
PostWebhooksPullRequestProcessor
public PostWebhooksPullRequestProcessor()
-
-
Method Details
-
getSupportedEvents
-
process
-
canHandle
public boolean canHandle(@NonNull Map<String, String> headers, @NonNull org.apache.commons.collections4.MultiValuedMap<String, String> parameters) - Specified by:
canHandlein interfacecom.cloudbees.jenkins.plugins.bitbucket.api.webhook.BitbucketWebhookProcessor
-
getServerURL
@NonNull public String getServerURL(@NonNull Map<String, String> headers, @NonNull org.apache.commons.collections4.MultiValuedMap<String, String> parameters) - Specified by:
getServerURLin interfacecom.cloudbees.jenkins.plugins.bitbucket.api.webhook.BitbucketWebhookProcessor
-
getEventType
@NonNull public String getEventType(@NonNull Map<String, String> headers, @NonNull org.apache.commons.collections4.MultiValuedMap<String, String> parameters) - Specified by:
getEventTypein interfacecom.cloudbees.jenkins.plugins.bitbucket.api.webhook.BitbucketWebhookProcessor
-
verifyPayload
public void verifyPayload(Map<String, String> headers, String payload, com.cloudbees.jenkins.plugins.bitbucket.api.endpoint.BitbucketEndpoint endpoint) throws com.cloudbees.jenkins.plugins.bitbucket.api.webhook.BitbucketWebhookProcessorException- Specified by:
verifyPayloadin interfacecom.cloudbees.jenkins.plugins.bitbucket.api.webhook.BitbucketWebhookProcessor- Throws:
com.cloudbees.jenkins.plugins.bitbucket.api.webhook.BitbucketWebhookProcessorException
-
getOrigin
-