|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.opensymphony.xwork.interceptor.AbstractLifecycleInterceptor
AbstractLifecycleInterceptor is a convenience interceptor that is like an
| Constructor Summary | |
AbstractLifecycleInterceptor()
|
|
| 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. |
void |
beforeResult(ActionInvocation invocation,
String resultCode)
This callback method will be called after the Action execution and before the Result execution. |
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. |
void |
init()
Called after an Interceptor is created, but before any requests are processed using the intercept() methodName. |
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. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public AbstractLifecycleInterceptor()
| Method Detail |
public void beforeResult(ActionInvocation invocation,
String resultCode)
beforeResult in interface PreResultListenerinvocation - resultCode - public void destroy()
destroy in interface Interceptorpublic void init()
init in interface Interceptor
public String intercept(ActionInvocation invocation)
throws Exception
intercept in interface Interceptorinvocation -
Exception
protected void after(ActionInvocation invocation,
String result)
throws Exception
invocation - result -
Exception
protected void before(ActionInvocation invocation)
throws Exception
invocation -
Exception
protected void handleException(Exception e)
throws Exception
e - the Exception caught
Exception
|
XWork Project Page | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||