public static class RequireCMEventPayload.Processor
extends org.kohsuke.stapler.interceptor.Interceptor
Constructor and Description |
---|
Processor() |
Modifier and Type | Method and Description |
---|---|
Object |
invoke(org.kohsuke.stapler.StaplerRequest request,
org.kohsuke.stapler.StaplerResponse response,
Object instance,
Object[] arguments)
Runs the validation logic - any issues will raise an exception back to the caller.
|
protected void |
requiresValidPayload(Object[] args)
Precheck that the arguments contain a parsable payload.
|
protected void |
requiresValidSignature(Object[] args)
Precheck to ensure that the request contains a valid signature and that the payload matches.
|
protected void |
requiresWebhookEnabled()
Precheck to ensure that the webhook is enabled.
|
public Object invoke(org.kohsuke.stapler.StaplerRequest request, org.kohsuke.stapler.StaplerResponse response, Object instance, Object[] arguments) throws IllegalAccessException, InvocationTargetException, javax.servlet.ServletException
invoke
in class org.kohsuke.stapler.interceptor.Interceptor
IllegalAccessException
InvocationTargetException
javax.servlet.ServletException
protected void requiresWebhookEnabled() throws InvocationTargetException
InvocationTargetException
protected void requiresValidPayload(@Nonnull Object[] args) throws InvocationTargetException
InvocationTargetException
protected void requiresValidSignature(Object[] args) throws InvocationTargetException
InvocationTargetException
Copyright © 2020–2021 Adobe Inc. All rights reserved.