Class ServerPullRequestWebhookProcessor

java.lang.Object
com.cloudbees.jenkins.plugins.bitbucket.impl.webhook.AbstractWebhookProcessor
com.cloudbees.jenkins.plugins.bitbucket.impl.webhook.server.ServerPullRequestWebhookProcessor
All Implemented Interfaces:
BitbucketWebhookProcessor, ExtensionPoint

@Extension @Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class) @RestrictedSince("933.3.0") public class ServerPullRequestWebhookProcessor extends AbstractWebhookProcessor
  • Constructor Details

    • ServerPullRequestWebhookProcessor

      public ServerPullRequestWebhookProcessor()
  • Method Details

    • canHandle

      public boolean canHandle(@NonNull Map<String,String> headers, @NonNull 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 - request
      parameters - 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 payload
      context - build from incoming request
      endpoint - configured in the Jenkins global page