Package org.kohsuke.stapler
Class LimitedTo.Processor
java.lang.Object
org.kohsuke.stapler.interceptor.Interceptor
org.kohsuke.stapler.LimitedTo.Processor
- Enclosing class:
- LimitedTo
-
Field Summary
Fields inherited from class org.kohsuke.stapler.interceptor.Interceptor
target -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioninvoke(StaplerRequest2 request, StaplerResponse2 response, Object instance, Object[] arguments) Intercepts the call.voidCalled by Stapler to set up the target of the interceptor.Methods inherited from class org.kohsuke.stapler.interceptor.Interceptor
invoke
-
Constructor Details
-
Processor
public Processor()
-
-
Method Details
-
setTarget
Description copied from class:InterceptorCalled by Stapler to set up the target of the interceptor. This function object represents a method on which your annotation is placed. This happens once before this instance takes any calls.- Overrides:
setTargetin classInterceptor
-
invoke
public Object invoke(StaplerRequest2 request, StaplerResponse2 response, Object instance, Object[] arguments) throws IllegalAccessException, InvocationTargetException, jakarta.servlet.ServletException Description copied from class:InterceptorIntercepts the call.The minimal no-op interceptor would do
target.invoke(request,response,instance,arguments), but the implementation is free to do additional pre/post processing.- Overrides:
invokein classInterceptor- Parameters:
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.- Returns:
- Return value from the method.
- Throws:
InvocationTargetException- if you want to send e.g. something fromHttpResponsesIllegalAccessExceptionjakarta.servlet.ServletException
-