com.opensymphony.xwork.interceptor
Class AroundInterceptor
java.lang.Object
com.opensymphony.xwork.interceptor.AroundInterceptor
- All Implemented Interfaces:
- Interceptor, Serializable
- Direct Known Subclasses:
- ActionAutowiringInterceptor, AliasInterceptor, BooleanTweaker, ChainingInterceptor, ComponentInterceptor, ConversionErrorInterceptor, CookieInterceptor, CreateSessionInterceptor, ExternalReferencesInterceptor, FlashInterceptor, LoggingInterceptor, ModelDrivenInterceptor, ParameterRemoverInterceptor, ParametersInterceptor, PrepareInterceptor, ServletConfigInterceptor, SessionContextAutowiringInterceptor, SessionInvalidationInterceptor, StaticParametersInterceptor
public abstract class AroundInterceptor - extends Object
- implements Interceptor
An abstract interceptor that provides simple access to before/after callouts.
- Author:
- Jason Carreira
- See Also:
- Serialized Form
|
Field Summary |
protected org.apache.commons.logging.Log |
log
|
|
Method Summary |
protected abstract void |
after(ActionInvocation dispatcher,
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. |
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 |
log
protected transient org.apache.commons.logging.Log log
AroundInterceptor
public AroundInterceptor()
destroy
public void destroy()
- Description copied from interface:
Interceptor
- Called to let an interceptor clean up any resources it has allocated.
- Specified by:
destroy in interface Interceptor
init
public void init()
- Description copied from interface:
Interceptor
- Called after an interceptor is created, but before any requests are processed using
intercept , giving
the Interceptor a chance to initialize any needed resources.
- Specified by:
init in interface Interceptor
intercept
public String intercept(ActionInvocation invocation)
throws Exception
- Description copied from interface:
Interceptor
- 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.
- Specified by:
intercept in interface Interceptor
- Returns:
- the return code, either returned from
ActionInvocation.invoke(), or from the interceptor itself.
- Throws:
Exception - any system-level error, as defined in Action.execute().
after
protected abstract void after(ActionInvocation dispatcher,
String result)
throws Exception
- Called after the invocation has been executed.
- Parameters:
result - the result value returned by the invocation
- Throws:
Exception
before
protected abstract void before(ActionInvocation invocation)
throws Exception
- Called before the invocation has been executed.
- Throws:
Exception
|