org.apache.beehive.netui.pageflow.interceptor.action
Class ActionInterceptor
Object
AbstractInterceptor
ActionInterceptor
- All Implemented Interfaces:
- Serializable, Interceptor
public abstract class ActionInterceptor
- extends AbstractInterceptor
Base class for page flow action interceptors. These are configured in /WEB-INF/netui-config.xml like this:
<netui-config xmlns="http://beehive.apache.org/netui/2004/server/config">
...
<pageflow-action-interceptors>
<global>
<before-action>
<action-interceptor>
<interceptor-class>test.BeforeActionInterceptor1</interceptor-class>
</action-interceptor>
<action-interceptor>
<interceptor-class>test.BeforeActionInterceptor2</interceptor-class>
</action-interceptor>
...
</before-action>
<after-action>
<action-interceptor>
<interceptor-class>test.AfterActionInterceptor1</interceptor-class>
</action-interceptor>
<action-interceptor>
<interceptor-class>test.AfterActionInterceptor2</interceptor-class>
</action-interceptor>
</after-action>
</global>
</pageflow-action-interceptors>
...
</netui-config>
Note that a registered ActionInterceptor is created and cached as a single instance per ServletContext.
It should not hold any per-request or per-session state.
- See Also:
- Serialized Form
Methods inherited from class Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ActionInterceptor
public ActionInterceptor()
preAction
public abstract void preAction(ActionInterceptorContext context,
InterceptorChain chain)
throws InterceptorException
- Throws:
InterceptorException
preInvoke
public void preInvoke(InterceptorContext context,
InterceptorChain chain)
throws InterceptorException
- Throws:
InterceptorException
postAction
public abstract void postAction(ActionInterceptorContext context,
InterceptorChain chain)
throws InterceptorException
- Throws:
InterceptorException
postInvoke
public void postInvoke(InterceptorContext context,
InterceptorChain chain)
throws InterceptorException
- Throws:
InterceptorException
afterNestedIntercept
public abstract void afterNestedIntercept(AfterNestedInterceptContext context)
throws InterceptorException
- Throws:
InterceptorException
setOverrideForward
protected void setOverrideForward(InterceptorForward forward,
ActionInterceptorContext context)