com.sun.j2ee.blueprints.petstore.control.web
Class ScreenFlowManager

java.lang.Object
  |
  +--com.sun.j2ee.blueprints.petstore.control.web.ScreenFlowManager

public class ScreenFlowManager
extends java.lang.Object

This file looks at the Request URL and maps the request to the page for the web-templating mechanism.


Constructor Summary
ScreenFlowManager()
           
 
Method Summary
 java.lang.String getCurrentScreen(javax.servlet.http.HttpSession session)
           
 void getNextScreen(javax.servlet.http.HttpServletRequest request)
          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 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 RequestHandler that is needed to process a request, and the RequestHandler that is needed to insure that the propper screen is displayed.
 void init(javax.servlet.ServletContext context)
           
 void setDefaultScreen(java.lang.String defaultScreen)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ScreenFlowManager

public ScreenFlowManager()
Method Detail

init

public void init(javax.servlet.ServletContext context)

getScreens

public java.util.HashMap getScreens(java.util.Locale locale)
Get the screens for the specified language.

getTemplate

public java.lang.String getTemplate(java.util.Locale locale)
Get the template for the specified language.

getURLMapping

public 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 RequestHandler that is needed to process a request, and the RequestHandler that is needed to insure that the propper screen is displayed.

getNextScreen

public void getNextScreen(javax.servlet.http.HttpServletRequest request)
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.

setDefaultScreen

public void setDefaultScreen(java.lang.String defaultScreen)

getParameter

public 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. If a language is not set then the default properties will be loaded.

getCurrentScreen

public java.lang.String getCurrentScreen(javax.servlet.http.HttpSession session)


Copyright © 2000 Sun Microsystems Inc. All Rights Reserved.