|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ObjectFlowControllerFactory
public class FlowControllerFactory
Factory for creating FlowController
s - user PageFlowController
s and
Global.app.
Constructor Summary | |
---|---|
FlowControllerFactory()
|
Method Summary | |
---|---|
static GlobalApp |
getGlobalApp(HttpServletRequest request,
HttpServletResponse response,
ServletContext servletContext)
Get or create the current user session's GlobalApp instance (from the Global.app file). |
static PageFlowController |
getPageFlow(Class jpfClass,
HttpServletRequest request,
HttpServletResponse response,
ServletContext servletContext)
Get the PageFlowController for the given type. |
static PageFlowController |
getPageFlow(String jpfClassName,
HttpServletRequest request,
HttpServletResponse response,
ServletContext servletContext)
Get the PageFlowController for the given type. |
static PageFlowController |
getPageFlowForRelativeURI(HttpServletRequest request,
HttpServletResponse response,
String relativeURI,
ServletContext servletContext)
Get the PageFlowController instance that should be associated with the given URI. |
static PageFlowController |
getPageFlowForRequest(HttpServletRequest request,
HttpServletResponse response,
ServletContext servletContext)
Get the PageFlowController instance that should be associated with the given request,
based on the path of the request URI. |
static PageFlowController |
getPageFlowForURI(HttpServletRequest request,
HttpServletResponse response,
String uri,
ServletContext servletContext)
|
static SharedFlowController |
getSharedFlow(Class sfClass,
HttpServletRequest request,
HttpServletResponse response,
ServletContext servletContext)
|
static SharedFlowController |
getSharedFlow(String sharedFlowClassName,
HttpServletRequest request,
HttpServletResponse response,
ServletContext servletContext)
|
static SharedFlowController |
getSharedFlowForRelativeURI(HttpServletRequest request,
HttpServletResponse response,
String relativeURI,
ServletContext servletContext)
|
static SharedFlowController |
getSharedFlowForRequest(HttpServletRequest request,
HttpServletResponse response,
ServletContext servletContext)
|
Methods inherited from class Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FlowControllerFactory()
Method Detail |
---|
public static PageFlowController getPageFlowForRequest(HttpServletRequest request, HttpServletResponse response, ServletContext servletContext)
PageFlowController
instance that should be associated with the given request,
based on the path of the request URI. If it doesn't exist, create it.
The PageFlowController stack (for nesting) will be cleared or pushed, and the new instance
will be stored as the current PageFlowController.
request
- the current HttpServletRequest.servletContext
- the current ServletContext.
null
if none was found
and none could be created.public static PageFlowController getPageFlowForURI(HttpServletRequest request, HttpServletResponse response, String uri, ServletContext servletContext)
public static PageFlowController getPageFlowForRelativeURI(HttpServletRequest request, HttpServletResponse response, String relativeURI, ServletContext servletContext)
PageFlowController
instance that should be associated with the given URI.
If it doesn't exist, create it. The PageFlowController stack (for
nesting) will be cleared or pushed, and the new instance will be stored as the current
PageFlowController.
request
- the current HttpServletRequest.response
- the current HttpServletResponse.relativeURI
- the webapp-relative URI for the page flow.servletContext
- the current ServletContext.
null
if none was found
and none could be created.public static SharedFlowController getSharedFlowForRequest(HttpServletRequest request, HttpServletResponse response, ServletContext servletContext)
public static SharedFlowController getSharedFlowForRelativeURI(HttpServletRequest request, HttpServletResponse response, String relativeURI, ServletContext servletContext)
public static PageFlowController getPageFlow(String jpfClassName, HttpServletRequest request, HttpServletResponse response, ServletContext servletContext)
PageFlowController
for the given type. The PageFlowController stack (for
nesting) will be cleared or pushed, and the new instance will be stored as the current
PageFlowController.
jpfClassName
- the name of the desired PageFlowController class.request
- the current HttpServletRequest.
null
if none could be found or created.public static GlobalApp getGlobalApp(HttpServletRequest request, HttpServletResponse response, ServletContext servletContext)
request
- the current HttpServletRequest.
null
is returned.public static SharedFlowController getSharedFlow(String sharedFlowClassName, HttpServletRequest request, HttpServletResponse response, ServletContext servletContext)
public static PageFlowController getPageFlow(Class jpfClass, HttpServletRequest request, HttpServletResponse response, ServletContext servletContext)
PageFlowController
for the given type. The PageFlowController stack (for
nesting) will be cleared or pushed, and the new instance will be stored as the current
PageFlowController.
jpfClass
- the desired PageFlowController class.request
- the current HttpServletRequest.
null
if none could be found or created.public static SharedFlowController getSharedFlow(Class sfClass, HttpServletRequest request, HttpServletResponse response, ServletContext servletContext)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |