All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class com.sdi.wap.demo.site.DemoSite

java.lang.Object
   |
   +----javax.servlet.GenericServlet
           |
           +----javax.servlet.http.HttpServlet
                   |
                   +----com.sdi.wap.SiteImpl
                           |
                           +----com.sdi.wap.demo.site.DemoSite

public class DemoSite
extends SiteImpl
implements Site
Define static names for each page in the system.


Variable Index

 o Account
Dynamic (servlet based) pages
 o accountParameterName
The name of a reserved session attribute the the site's Login State sets with an instance of the currently logged in Account.
 o contextName
This site's context/zone name
 o dateFmt
 o defaultPage
 o documentRoot
This site's document root directory
 o EditAddress
 o Home
Static (web server based) pages
 o instance
 o Login
 o loginPage
 o Logout
 o moneyFmt
 o monthFmt
 o Refuse
 o refusePage
 o Register
 o RegisteredRole
Roles
 o servletName
The name of this servlet
 o timeFmt

Constructor Index

 o DemoSite()

Method Index

 o getBaseDirectory()
Get the base directory of the html server.
 o getContextName()
Get the context name
 o getDefaultPage()
Get the default Page, the page that should be displayed if the servlet receives an invalid request with no do= parameter.
 o getLoginPage()
Get the login page; the page that guides the user through the login process.
 o getRefusePage()
Get the refuse Page, the page that should be displayed if the user requests a resource for which permission should be denied.
 o getServletName()
Get the servlet name
 o htmlLeft(View)
 o htmlPage(View, String)
Emit the argument string to the browser enclosed in htmlPageOpen() and htmlPageClose() output.
 o htmlPageClose(View)
Return this site's convention for closing a web page typically "  o htmlPageOpen(View)
Return this site's convention for closing a web page as a bare minimum, "whatever"
 o htmlTop(View)
 o setAccount(Account, View)
Set the currently logged in account by storing it in a session attribute

Variables

 o instance
 public static final Site instance
 o accountParameterName
 public static final String accountParameterName
The name of a reserved session attribute the the site's Login State sets with an instance of the currently logged in Account.

 o documentRoot
 public static final String documentRoot
This site's document root directory

 o contextName
 public static final String contextName
This site's context/zone name

 o servletName
 public static final String servletName
The name of this servlet

 o moneyFmt
 public static final NumberFormat moneyFmt
 o dateFmt
 public static final SimpleDateFormat dateFmt
 o timeFmt
 public static final SimpleDateFormat timeFmt
 o monthFmt
 public static final SimpleDateFormat monthFmt
 o RegisteredRole
 protected static final Role RegisteredRole
Roles

 o Home
 protected static final Page Home
Static (web server based) pages

 o Account
 protected static final DynamicPage Account
Dynamic (servlet based) pages

 o Register
 protected static final DynamicPage Register
 o EditAddress
 protected static final DynamicPage EditAddress
 o Login
 protected static final DynamicPage Login
 o Logout
 protected static final DynamicPage Logout
 o Refuse
 protected static final DynamicPage Refuse
 o defaultPage
 protected static final DynamicPage defaultPage
 o loginPage
 protected static final DynamicPage loginPage
 o refusePage
 protected static final DynamicPage refusePage

Constructors

 o DemoSite
 public DemoSite()

Methods

 o getBaseDirectory
 public final String getBaseDirectory()
Get the base directory of the html server.

Returns:
java.lang.String
Overrides:
getBaseDirectory in class SiteImpl
 o getContextName
 public final String getContextName()
Get the context name

Returns:
java.lang.String
Overrides:
getContextName in class SiteImpl
 o getDefaultPage
 public final DynamicPage getDefaultPage()
Get the default Page, the page that should be displayed if the servlet receives an invalid request with no do= parameter.

Returns:
java.lang.String
Overrides:
getDefaultPage in class SiteImpl
 o getLoginPage
 public DynamicPage getLoginPage()
Get the login page; the page that guides the user through the login process.

Returns:
Page
Overrides:
getLoginPage in class SiteImpl
 o getRefusePage
 public DynamicPage getRefusePage()
Get the refuse Page, the page that should be displayed if the user requests a resource for which permission should be denied.

Returns:
Page
Overrides:
getRefusePage in class SiteImpl
 o getServletName
 public final String getServletName()
Get the servlet name

Returns:
java.lang.String
Overrides:
getServletName in class GenericServlet
 o htmlLeft
 public String htmlLeft(View view)
 o htmlPage
 public String htmlPage(View view,
                        String contents) throws Exception
Emit the argument string to the browser enclosed in htmlPageOpen() and htmlPageClose() output.

Overrides:
htmlPage in class SiteImpl
 o htmlPageClose
 public String htmlPageClose(View view)
Return this site's convention for closing a web page typically "
Overrides:
htmlPageClose in class SiteImpl
 o htmlPageOpen
 public String htmlPageOpen(View view) throws Exception
Return this site's convention for closing a web page as a bare minimum, "whatever"

Overrides:
htmlPageOpen in class SiteImpl
 o htmlTop
 public final String htmlTop(View view) throws Exception
 o setAccount
 public void setAccount(Account account,
                        View view)
Set the currently logged in account by storing it in a session attribute

Overrides:
setAccount in class SiteImpl

All Packages  Class Hierarchy  This Package  Previous  Next  Index