org.apache.beehive.netui.pageflow.interceptor
Class ActionInterceptorChain

Object
  extended by ActionInterceptorChain
All Implemented Interfaces:
Serializable

public class ActionInterceptorChain
extends Object
implements Serializable

Class for managing the chain of action interceptors at runtime.

See Also:
Serialized Form

Field Summary
static String CONFIG_FILE
           
 
Constructor Summary
protected ActionInterceptorChain(ActionInterceptor[] interceptors)
           
 
Method Summary
 InterceptorForward doIntercept(HttpServletRequest request, HttpServletResponse response, InterceptorForward originalForward, PageFlowController pageFlow, String actionName)
           
 ActionInterceptor[] getActionInterceptors()
           
static ActionInterceptor getActiveInterceptor(HttpServletRequest request)
           
static ActionInterceptorChain getAfterActionChain(String actionName, HttpServletRequest request, ServletContext servletContext)
           
static ActionInterceptorChain getBeforeActionChain(String actionName, HttpServletRequest request, ServletContext servletContext)
           
static InterceptorForward getInterceptedForward(HttpServletRequest request, boolean consume)
           
static boolean isReturningFromIntercept(HttpServletRequest request)
           
 void setActionInterceptors(ActionInterceptor[] actionInterceptors)
           
static void setIsReturningFromIntercept(HttpServletRequest request, boolean isReturning)
           
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CONFIG_FILE

public static final String CONFIG_FILE
See Also:
Constant Field Values
Constructor Detail

ActionInterceptorChain

protected ActionInterceptorChain(ActionInterceptor[] interceptors)
Method Detail

getActionInterceptors

public ActionInterceptor[] getActionInterceptors()

setActionInterceptors

public void setActionInterceptors(ActionInterceptor[] actionInterceptors)

getBeforeActionChain

public static ActionInterceptorChain getBeforeActionChain(String actionName,
                                                          HttpServletRequest request,
                                                          ServletContext servletContext)

getAfterActionChain

public static ActionInterceptorChain getAfterActionChain(String actionName,
                                                         HttpServletRequest request,
                                                         ServletContext servletContext)

getActiveInterceptor

public static ActionInterceptor getActiveInterceptor(HttpServletRequest request)

getInterceptedForward

public static InterceptorForward getInterceptedForward(HttpServletRequest request,
                                                       boolean consume)

setIsReturningFromIntercept

public static void setIsReturningFromIntercept(HttpServletRequest request,
                                               boolean isReturning)

isReturningFromIntercept

public static boolean isReturningFromIntercept(HttpServletRequest request)

doIntercept

public InterceptorForward doIntercept(HttpServletRequest request,
                                      HttpServletResponse response,
                                      InterceptorForward originalForward,
                                      PageFlowController pageFlow,
                                      String actionName)