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:
-
instances
- The dynamicPages that make up this site.
-
nounName
-
-
obj
- The request operand (the noun)
-
op
- The request operator (the verb)
-
stateClass
-
-
verbName
- The verb and noun are two reserved request parameters.
-
DynamicPage(Validatable, Validatable, Class, Page, Role, String, String)
- Constructor
-
findPage(HttpServletRequest, DynamicPage)
- Insert the method's description here.
-
getRelativePath(Site)
- Construct a url with no args
-
launch(Site, HttpServletRequest, HttpServletResponse)
- Launch a state by calling its controller() method via the reflection API.
stateClass
private Class stateClass
op
private Validatable op
- The request operator (the verb)
obj
private Validatable obj
- The request operand (the noun)
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..
nounName
public static final String nounName
instances
private static final Hashtable instances
- The dynamicPages that make up this site.
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
findPage
public static final DynamicPage findPage(HttpServletRequest request,
DynamicPage defaultPage)
- Insert the method's description here.
Creation date: (01/22/01 20:17:49)
getRelativePath
public String getRelativePath(Site site)
- Construct a url with no args
- Overrides:
- getRelativePath in class Page
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