public class RequestNameInterceptor
extends java.lang.Object
implements com.opensymphony.xwork2.interceptor.Interceptor
| Constructor and Description |
|---|
RequestNameInterceptor() |
| Modifier and Type | Method and Description |
|---|---|
void |
destroy()
Called to let an interceptor clean up any resources it has allocated.
|
void |
init()
Called after an interceptor is created, but before any requests are processed using
intercept , giving
the Interceptor a chance to initialize any needed resources. |
java.lang.String |
intercept(com.opensymphony.xwork2.ActionInvocation invocation)
Allows the Interceptor to do some processing on the request before and/or after the rest of the processing of the
request by the
ActionInvocation or to short-circuit the processing and just return a String return code. |
public void init()
intercept , giving
the Interceptor a chance to initialize any needed resources.init in interface com.opensymphony.xwork2.interceptor.Interceptorpublic java.lang.String intercept(com.opensymphony.xwork2.ActionInvocation invocation)
throws java.lang.Exception
ActionInvocation or to short-circuit the processing and just return a String return code.intercept in interface com.opensymphony.xwork2.interceptor.Interceptorinvocation - The action invocation.ActionInvocation.invoke(), or from the interceptor itself.java.lang.Exception - any system-level error, as defined in Action.execute().public void destroy()
destroy in interface com.opensymphony.xwork2.interceptor.Interceptor