|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.opensymphony.xwork.interceptor.AroundInterceptor
public abstract class AroundInterceptor
An abstract interceptor that provides simple access to before/after callouts.
Field Summary | |
---|---|
protected org.apache.commons.logging.Log |
log
|
Constructor Summary | |
---|---|
AroundInterceptor()
|
Method Summary | |
---|---|
protected abstract void |
after(ActionInvocation dispatcher,
java.lang.String result)
Called after the invocation has been executed. |
protected abstract void |
before(ActionInvocation invocation)
Called before the invocation has been executed. |
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(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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected transient org.apache.commons.logging.Log log
Constructor Detail |
---|
public AroundInterceptor()
Method Detail |
---|
public void destroy()
Interceptor
destroy
in interface Interceptor
public void init()
Interceptor
intercept
, giving
the Interceptor a chance to initialize any needed resources.
init
in interface Interceptor
public java.lang.String intercept(ActionInvocation invocation) throws java.lang.Exception
Interceptor
ActionInvocation
or to short-circuit the processing and just return a String return code.
intercept
in interface Interceptor
ActionInvocation.invoke()
, or from the interceptor itself.
java.lang.Exception
- any system-level error, as defined in Action.execute()
.protected abstract void after(ActionInvocation dispatcher, java.lang.String result) throws java.lang.Exception
result
- the result value returned by the invocation
java.lang.Exception
protected abstract void before(ActionInvocation invocation) throws java.lang.Exception
java.lang.Exception
|
XWork Project Page | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |