| java.lang.Object com.opensymphony.xwork.interceptor.AbstractLifecycleInterceptor
AbstractLifecycleInterceptor | abstract public class AbstractLifecycleInterceptor implements Interceptor,PreResultListener(Code) | | AbstractLifecycleInterceptor is a convenience interceptor that is like an
com.opensymphony.xwork.interceptor.AroundInterceptor that allows before and after action invocation callback but also berfore result is being executedcallback as it implements @link com.opensymphony.xwork.interceptor.PreResultListener author: Jason Carreira version: $Date: 2006-03-19 17:17:47 +0100 (So, 19 Mrz 2006) $ $Id: AbstractLifecycleInterceptor.java 913 2006-03-19 16:17:47Z tmjee $ |
Method Summary | |
protected void | after(ActionInvocation invocation, String result) Called after the Action and Result have been executed. | protected void | before(ActionInvocation invocation) Called before the rest of the ActionInvocation is forwarded to. | public void | beforeResult(ActionInvocation invocation, String resultCode) This callback method will be called after the Action execution and before the Result execution. | public void | destroy() Called to let an interceptor clean up any resources it has allocated. | protected void | handleException(Exception e) Called if an Exception is caught while executing the before(), the rest of the ActionInvocation, including the
Action and Result execution, or the after() call. | public void | init() Called after an Interceptor is created, but before any requests are processed using the intercept() methodName. | public String | intercept(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 DefaultActionInvocation or to short-circuit the processing and just return a String return code. |
beforeResult | public void beforeResult(ActionInvocation invocation, String resultCode)(Code) | | This callback method will be called after the Action execution and before the Result execution.
Parameters: invocation - Parameters: resultCode - |
destroy | public void destroy()(Code) | | Called to let an interceptor clean up any resources it has allocated.
|
handleException | protected void handleException(Exception e) throws Exception(Code) | | Called if an Exception is caught while executing the before(), the rest of the ActionInvocation, including the
Action and Result execution, or the after() call. The default implementation just rethrows the Exception. Subclasses
can choose to either throw an Exception or do some processing.
Parameters: e - the Exception caught throws: Exception - |
init | public void init()(Code) | | Called after an Interceptor is created, but before any requests are processed using the intercept() methodName. This
gives the Interceptor a chance to initialize any needed resources.
|
intercept | public String intercept(ActionInvocation invocation) throws Exception(Code) | | Allows the Interceptor to do some processing on the request before and/or after the rest of the processing of the
request by the DefaultActionInvocation or to short-circuit the processing and just return a String return code.
Parameters: invocation - result throws: Exception - |
|
|