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.InterceptorIllegalAccessExceptionInvocationTargetExceptionjavax.servlet.ServletExceptionprotected void requiresWebhookEnabled()
throws InvocationTargetException
InvocationTargetExceptionprotected void requiresValidPayload(@Nonnull Object[] args) throws InvocationTargetException
InvocationTargetExceptionprotected void requiresValidSignature(Object[] args) throws InvocationTargetException
InvocationTargetExceptionCopyright © 2020–2021 Adobe Inc. All rights reserved.