public abstract class Interceptor extends Object
InterceptorAnnotation
Constructor and Description |
---|
Interceptor() |
Modifier and Type | Method and Description |
---|---|
abstract Object |
invoke(StaplerRequest request,
StaplerResponse response,
Object instance,
Object[] arguments)
Intercepts the call.
|
void |
setTarget(Function target)
Called by Stapler to set up the target of the interceptor.
|
protected Function target
public void setTarget(Function target)
public abstract Object invoke(StaplerRequest request, StaplerResponse response, Object instance, Object[] arguments) throws IllegalAccessException, InvocationTargetException, javax.servlet.ServletException
The minimal no-op interceptor would do target.invoke(request,response,instance,arguments)
,
but the implementation is free to do additional pre/post processing.
request
- The current request we are processing.response
- The current response object.instance
- The domain object instance whose method we are about to invoke.arguments
- Arguments of the method call.InvocationTargetException
- if you want to send e.g. something from HttpResponses
CancelRequestHandlingException
- to cancel this request handling and moves on to the next available dispatch mechanism.IllegalAccessException
javax.servlet.ServletException
Copyright © 2017. All rights reserved.