|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.instantbank.servicing.control.web.ScreenFlowManager
Looks at the Request URL and maps the request to the screen (page) for the web-templating mechanism.
Field Summary | |
private Debug |
debug
|
private java.lang.String |
defaultScreen
|
private java.util.HashMap |
screenDefinitionMappings
|
private java.util.HashMap |
screens
|
private java.util.HashMap |
urlMappings
|
Constructor Summary | |
ScreenFlowManager()
Constructor for the ScreenFlowManager object |
Method Summary | |
java.lang.String |
getCurrentScreen(javax.servlet.http.HttpSession session)
get the name of current screen from a web session variable |
void |
getNextScreen(javax.servlet.http.HttpServletRequest request,
java.lang.Object answer,
javax.servlet.ServletContext context)
Using the information we have in the request along with The url map for the current url we will insure that the propper current screen is selected based on the settings in both the screendefinitions.xml file and requestmappings.xml files. |
Parameter |
getParameter(java.lang.String key,
javax.servlet.http.HttpSession session)
Gets the required parameter for the current screen This method is used by the insert tag to get the parameters needed to build a page. |
java.util.HashMap |
getScreens(java.util.Locale locale)
Get the screens for the specified language. |
java.lang.String |
getTemplate(java.util.Locale locale)
Get the template (JSP) for the specified language. |
URLMapping |
getURLMapping(java.lang.String urlPattern)
The UrlMapping object contains information that will match a url to a mapping object that contains information about the current screen, the handler class that is needed to process a request, and the flow handler class that is needed to insure that the propper screen is displayed. |
void |
init(javax.servlet.ServletContext context)
build structures of definition of screens and of its transitions from xml files |
void |
setDefaultScreen(java.lang.String defaultScreen)
set default output screen (example: INDEX) |
Methods inherited from class java.lang.Object |
|
Field Detail |
private java.util.HashMap screens
private java.util.HashMap urlMappings
private java.util.HashMap screenDefinitionMappings
private Debug debug
private java.lang.String defaultScreen
Constructor Detail |
public ScreenFlowManager()
Method Detail |
public void init(javax.servlet.ServletContext context)
context
- web contextpublic java.util.HashMap getScreens(java.util.Locale locale)
locale
- Description of the Parameterpublic java.lang.String getTemplate(java.util.Locale locale)
locale
- Description of the Parameterpublic URLMapping getURLMapping(java.lang.String urlPattern)
urlPattern
- url associated to user requestpublic void getNextScreen(javax.servlet.http.HttpServletRequest request, java.lang.Object answer, javax.servlet.ServletContext context) throws ServicingEventException
request
- Http requestanswer
- answer to event corresponding to user requestcontext
- web contextServicingEventException
- public Parameter getParameter(java.lang.String key, javax.servlet.http.HttpSession session)
key
- name of Parametersession
- web sessionpublic void setDefaultScreen(java.lang.String defaultScreen)
defaultScreen
- The new defaultScreen valuepublic java.lang.String getCurrentScreen(javax.servlet.http.HttpSession session)
session
- web session
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |