org.apache.beehive.netui.pageflow.internal
Class DefaultActionForwardHandler

Object
  extended by BaseHandler
      extended by DefaultHandler
          extended by DefaultActionForwardHandler
All Implemented Interfaces:
Serializable, ActionForwardHandler, Handler

public class DefaultActionForwardHandler
extends DefaultHandler
implements ActionForwardHandler

See Also:
Serialized Form

Constructor Summary
DefaultActionForwardHandler(ServletContext servletContext)
           
 
Method Summary
 ActionForward doAutoViewRender(FlowControllerHandlerContext context, ActionMapping mapping, ActionForm form)
           
 ActionForward doForward(FlowControllerHandlerContext context, ActionForward fwd, ActionMapping mapping, String actionName, ModuleConfig altModuleConfig, ActionForm form)
          Perform any necessary updates to the request and user session (including updates to the PageFlowController stack), based on the given ActionForward.
 ActionForward doNestingReturn(FlowControllerHandlerContext context, Forward pageFlowFwd, ActionMapping mapping, ActionForm form)
           
 ActionForward doReturnToAction(FlowControllerHandlerContext context, String actionName, Forward pageFlowFwd)
           
 ActionForward doReturnToPage(FlowControllerHandlerContext context, PreviousPageInfo prevPageInfo, PageFlowController currentPageFlow, ActionForm currentForm, String actionName, Forward pageFlowFwd)
          Get an ActionForward to the original page that was visible before the previous action.
 ActionForwardHandler getRegisteredHandler()
           
 ActionForward handleInterceptorReturn(FlowControllerHandlerContext context, PageFlowController poppedPageFlow, PageFlowStack.PushedPageFlow pushedPageFlowWrapper, String returnAction, ActionMapping actionMapping, ActionForm form, ActionInterceptor interceptor)
           
 
Methods inherited from class DefaultHandler
setRegisteredHandler
 
Methods inherited from class BaseHandler
getConfig, getPreviousHandler, getServletContext, init, reinit
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface Handler
init, reinit
 

Constructor Detail

DefaultActionForwardHandler

public DefaultActionForwardHandler(ServletContext servletContext)
Method Detail

doForward

public ActionForward doForward(FlowControllerHandlerContext context,
                               ActionForward fwd,
                               ActionMapping mapping,
                               String actionName,
                               ModuleConfig altModuleConfig,
                               ActionForm form)
Perform any necessary updates to the request and user session (including updates to the PageFlowController stack), based on the given ActionForward.

Specified by:
doForward in interface ActionForwardHandler
Parameters:
context - the current FlowControllerHandlerContext.
fwd - the Struts ActionForward that determines the next URI to be displayed.
mapping - the Struts ActionMapping for the current action being processed.
actionName - the name of the Struts action being processed.
altModuleConfig - an alternate module config (e.g., Global.app's ModuleConfig) from which to resolve a forward if it can't be resolved from the given ActionMapping.
Returns:
the ActionForward object to pass to Struts for actual Servlet forwarding.

doAutoViewRender

public ActionForward doAutoViewRender(FlowControllerHandlerContext context,
                                      ActionMapping mapping,
                                      ActionForm form)
Specified by:
doAutoViewRender in interface ActionForwardHandler

doReturnToPage

public ActionForward doReturnToPage(FlowControllerHandlerContext context,
                                    PreviousPageInfo prevPageInfo,
                                    PageFlowController currentPageFlow,
                                    ActionForm currentForm,
                                    String actionName,
                                    Forward pageFlowFwd)
Get an ActionForward to the original page that was visible before the previous action.

Specified by:
doReturnToPage in interface ActionForwardHandler

doReturnToAction

public ActionForward doReturnToAction(FlowControllerHandlerContext context,
                                      String actionName,
                                      Forward pageFlowFwd)
Specified by:
doReturnToAction in interface ActionForwardHandler

doNestingReturn

public ActionForward doNestingReturn(FlowControllerHandlerContext context,
                                     Forward pageFlowFwd,
                                     ActionMapping mapping,
                                     ActionForm form)
Specified by:
doNestingReturn in interface ActionForwardHandler

handleInterceptorReturn

public ActionForward handleInterceptorReturn(FlowControllerHandlerContext context,
                                             PageFlowController poppedPageFlow,
                                             PageFlowStack.PushedPageFlow pushedPageFlowWrapper,
                                             String returnAction,
                                             ActionMapping actionMapping,
                                             ActionForm form,
                                             ActionInterceptor interceptor)
Specified by:
handleInterceptorReturn in interface ActionForwardHandler

getRegisteredHandler

public ActionForwardHandler getRegisteredHandler()
Overrides:
getRegisteredHandler in class DefaultHandler