|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.opensymphony.xwork.interceptor.AbstractLifecycleInterceptor
public abstract class AbstractLifecycleInterceptor
AbstractLifecycleInterceptor is a convenience interceptor that is like an
Constructor Summary | |
---|---|
AbstractLifecycleInterceptor()
|
Method Summary | |
---|---|
protected void |
after(ActionInvocation invocation,
java.lang.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,
java.lang.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(java.lang.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. |
java.lang.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, java.lang.String resultCode)
beforeResult
in interface PreResultListener
invocation
- resultCode
- public void destroy()
destroy
in interface Interceptor
public void init()
init
in interface Interceptor
public java.lang.String intercept(ActionInvocation invocation) throws java.lang.Exception
intercept
in interface Interceptor
invocation
-
java.lang.Exception
protected void after(ActionInvocation invocation, java.lang.String result) throws java.lang.Exception
invocation
- result
-
java.lang.Exception
protected void before(ActionInvocation invocation) throws java.lang.Exception
invocation
-
java.lang.Exception
protected void handleException(java.lang.Exception e) throws java.lang.Exception
e
- the Exception caught
java.lang.Exception
|
XWork Project Page | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |