| java.lang.Object org.apache.beehive.netui.core.factory.Factory org.apache.beehive.netui.pageflow.FlowControllerFactory
Method Summary | |
public PageFlowController | createPageFlow(RequestContext context, String pageFlowClassName) Create a
PageFlowController of the given type. | public PageFlowController | createPageFlow(RequestContext context, Class pageFlowClass) Create a
PageFlowController of the given type. | public SharedFlowController | createSharedFlow(RequestContext context, String sharedFlowClassName) Create a
SharedFlowController of the given type.
Parameters: context - a RequestContext object which contains the current request and response. Parameters: sharedFlowClassName - the type name of the desired SharedFlowController. | public SharedFlowController | createSharedFlow(RequestContext context, Class sharedFlowClass) Create a
SharedFlowController of the given type.
Parameters: context - a RequestContext object which contains the current request and response. Parameters: sharedFlowClass - the type of the desired SharedFlowController. | public static FlowControllerFactory | get(ServletContext servletContext) Get a
FlowControllerFactory . | LinkedHashMap | getDefaultSharedFlows(RequestContext context) | public Class | getFlowControllerClass(String className) Get a FlowController class. | public FlowController | getFlowControllerInstance(Class flowControllerClass) Get a FlowController instance, given a FlowController class.
Parameters: flowControllerClass - the Class, which must be assignable to FlowController. | public static GlobalApp | getGlobalApp(HttpServletRequest request, HttpServletResponse response, ServletContext servletContext) Get or create the current user session's GlobalApp instance (from the Global.app file).
FlowControllerFactory.getSharedFlowsForRequest(RequestContext) Parameters: request - the current HttpServletRequest. Parameters: response - the current HttpServletResponse. | public static PageFlowController | getPageFlow(String pageFlowClassName, HttpServletRequest request, HttpServletResponse response, ServletContext servletContext) Create a page flow of the given type. | public static PageFlowController | getPageFlow(Class pageFlowClass, HttpServletRequest request, HttpServletResponse response, ServletContext servletContext) Create a page flow of the given type. | public PageFlowController | getPageFlowForPath(RequestContext context, String path) Get the page flow instance that should be associated with the given path. | public static PageFlowController | getPageFlowForRelativeURI(HttpServletRequest request, HttpServletResponse response, String path, ServletContext servletContext) Get the page flow instance that should be associated with the given path. | public PageFlowController | getPageFlowForRequest(RequestContext context) Get the page flow instance that should be associated with the given request. | public static PageFlowController | getPageFlowForRequest(HttpServletRequest request, HttpServletResponse response, ServletContext servletContext) Get the page flow instance that should be associated with the given request. | public static PageFlowController | getPageFlowForURI(HttpServletRequest request, HttpServletResponse response, String uri, ServletContext servletContext) Get the page flow instance that should be associated with the given URI. | public Map | getSharedFlowsForPath(RequestContext context, String path) Get the map of shared flows for the given path. | public Map | getSharedFlowsForRequest(RequestContext context) Get the map of shared flows for the given request. | public static void | init(ServletContext servletContext) Initialize an instance of this class in the ServletContext. | protected void | reinit(ServletContext servletContext) Called to reinitialize this instance, most importantly after it has been serialized/deserialized. |
FlowControllerFactory | protected FlowControllerFactory()(Code) | | |
getPageFlowForPath | public PageFlowController getPageFlowForPath(RequestContext context, String path) throws InstantiationException, IllegalAccessException(Code) | | Get the page flow instance that should be associated with the given path. If it doesn't exist, create it.
If one is created, the page flow stack (for nesting) will be cleared or pushed, and the new instance will be
stored as the current page flow.
Parameters: context - a RequestContext object which contains the current request and response. Parameters: path - a webapp-relative path. The path should not contain the webapp context path. the PageFlowController for the given path, or null if none was found. |
getPageFlowForRelativeURI | public static PageFlowController getPageFlowForRelativeURI(HttpServletRequest request, HttpServletResponse response, String path, ServletContext servletContext)(Code) | | Get the page flow instance that should be associated with the given path. If it doesn't exist, create it.
If one is created, the page flow stack (for nesting) will be cleared or pushed, and the new instance will be
stored as the current page flow.
FlowControllerFactory.getPageFlowForPath(RequestContext,String) Parameters: request - the current HttpServletRequest. Parameters: response - the current HttpServletResponse. Parameters: path - a webapp-relative path. The path should not contain the webapp context path. Parameters: servletContext - the current ServletContext. the PageFlowController for the given path, or null if none was found. |
init | public static void init(ServletContext servletContext)(Code) | | Initialize an instance of this class in the ServletContext. This is a framework-invoked
method and should not normally be called directly.
|
reinit | protected void reinit(ServletContext servletContext)(Code) | | Called to reinitialize this instance, most importantly after it has been serialized/deserialized.
Parameters: servletContext - the current ServletContext. |
|
|