All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class com.sdi.wap.DynamicPage

java.lang.Object
   |
   +----com.sdi.wap.Page
           |
           +----com.sdi.wap.DynamicPage

public class DynamicPage
extends Page
This is a concrete implementation of the Page abstract class for dynamic pages; e.g. java servlets. A sibling, StaticPage, implements static html pages served directly by the web server without involvement of servlets.

Author:
Brad Cox; bcox@virtualschool.edu
See Also:
Page:, StaticPage:

Variable Index

 o instances
The dynamicPages that make up this site.
 o nounName
 o obj
The request operand (the noun)
 o op
The request operator (the verb)
 o stateClass
 o verbName
The verb and noun are two reserved request parameters.

Constructor Index

 o DynamicPage(Validatable, Validatable, Class, Page, Role, String, String)
Constructor

Method Index

 o findPage(HttpServletRequest, DynamicPage)
Insert the method's description here.
 o getRelativePath(Site)
Construct a url with no args
 o launch(Site, HttpServletRequest, HttpServletResponse)
Launch a state by calling its controller() method via the reflection API.

Variables

 o stateClass
 private Class stateClass
 o op
 private Validatable op
The request operator (the verb)

 o obj
 private Validatable obj
The request operand (the noun)

 o verbName
 public static final String verbName
The verb and noun are two reserved request parameters. The verb determines the next state and the verb is inspected by the state's controller to dispatch control to any sub-functions within that state..

 o nounName
 public static final String nounName
 o instances
 private static final Hashtable instances
The dynamicPages that make up this site.

Constructors

 o DynamicPage
 public DynamicPage(Validatable op,
                    Validatable obj,
                    Class stateClass,
                    Page parent,
                    Role role,
                    String anchor,
                    String title)
Constructor

Parameters:
String - identifier: The internal internal identifier via which this page will be indexed in the instances table.
Class - stateClass: The State class that the web servlet will instantiate to handle requsts for this page by calling the instances' controller() method.
String - anchor: A short string that will be used as the anchor text for this page in the navigation menu generated by Site.htmlPageOpen().
Role - role: the role that will be allowed to access this page.
String - title: the title text for this page. This string will be emitted with a anchor
See Also:
htmlPageOpen

Methods

 o findPage
 public static final DynamicPage findPage(HttpServletRequest request,
                                          DynamicPage defaultPage)
Insert the method's description here. Creation date: (01/22/01 20:17:49)

 o getRelativePath
 public String getRelativePath(Site site)
Construct a url with no args

Overrides:
getRelativePath in class Page
 o launch
 public final void launch(Site site,
                          HttpServletRequest request,
                          HttpServletResponse response) throws Exception
Launch a state by calling its controller() method via the reflection API.

Parameters:
HttpServlet - servlet: the servlet itself
HttpServletRequest - request: the servlet request object
HttpServletResponse - response: the servlet response object

All Packages  Class Hierarchy  This Package  Previous  Next  Index