All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class com.sdi.wap.StaticPage

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

public class StaticPage
extends Page
A concrete implementation of the AbstractState interface for web based input modalities. Each web page in a system is modeled inside the system as an instance of this class. The instance's annotation variable (inherited from StateImpl) provides web-specific details, such as the page's url, title, anchor, etc.


Variable Index

 o instances
 o url

Constructor Index

 o StaticPage(String, Page, Role, String, String)
Constructor

Method Index

 o checkUrlValidity(Site)
Complain if any urls do not exist
 o getHref()
Return the url
 o getRelativePath()
Return the url
 o getRelativePath(Site)
Return the url
 o getUrl()
Return the url

Variables

 o url
 private String url
 o instances
 private static final Hashtable instances

Constructors

 o StaticPage
 public StaticPage(String identifier,
                   Page parent,
                   Role role,
                   String url,
                   String title)
Constructor

Parameters:
String - identifier: the internal name of this page
Page - parent: The parent of this page in the page hierarchy or null if none.
Role - role: The role allowed to access this page.
String - url: The absolute url of this page minus the servlet context
String - title: The title of this page

Methods

 o checkUrlValidity
 public static final void checkUrlValidity(Site site)
Complain if any urls do not exist

 o getHref
 public String getHref()
Return the url

 o getRelativePath
 public String getRelativePath()
Return the url

 o getRelativePath
 public String getRelativePath(Site site)
Return the url

Parameters:
eter - Site site: unused in this implementation
Overrides:
getRelativePath in class Page
 o getUrl
 public String getUrl()
Return the url


All Packages  Class Hierarchy  This Package  Previous  Next  Index