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
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 HttpResponsesIllegalAccessExceptionCopyright © 2014. All rights reserved.