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

@Extension public class PostWebhooksPullRequestProcessor extends Object
  • Constructor Details

    • PostWebhooksPullRequestProcessor

      public PostWebhooksPullRequestProcessor()
  • Method Details

    • getSupportedEvents

      protected List<PostWebhooksEventType> getSupportedEvents()
    • process

      public void process(@NonNull String hookEventType, @NonNull String payload, @NonNull Map<String,Object> context, @NonNull com.cloudbees.jenkins.plugins.bitbucket.api.endpoint.BitbucketEndpoint endpoint)
    • canHandle

      public boolean canHandle(@NonNull Map<String,String> headers, @NonNull org.apache.commons.collections4.MultiValuedMap<String,String> parameters)
      Specified by:
      canHandle in interface com.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:
      getServerURL in interface com.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:
      getEventType in interface com.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:
      verifyPayload in interface com.cloudbees.jenkins.plugins.bitbucket.api.webhook.BitbucketWebhookProcessor
      Throws:
      com.cloudbees.jenkins.plugins.bitbucket.api.webhook.BitbucketWebhookProcessorException
    • getOrigin

      @NonNull protected String getOrigin(Map<String,Object> context)