All Packages Class Hierarchy This Package Previous Next Index
Class com.sdi.wap.SiteImpl
java.lang.Object
|
+----javax.servlet.GenericServlet
|
+----javax.servlet.http.HttpServlet
|
+----com.sdi.wap.SiteImpl
- public abstract class SiteImpl
- extends HttpServlet
- implements Site
Abstract superclass to define inheritable methods for concrete
Site implementations. Each servlet context must provide one
(and only one) subclass of this class. The use of static variables
below requires that each site class reside in a its own servlet context.
This restriction may be removed in the future.
- Author:
- Brad Cox
-
accountAttributeName
- The name of the session attribute that is reserved to
hold the Account of the currently logged in user.
-
doAttributeName
- This is the name of the request parameter that will contain
the identifier of the currently executing page.
-
toAttributeName
-
-
SiteImpl()
- Constructor.
-
doGet(HttpServletRequest, HttpServletResponse)
- Service get requests by forwarding them to the post request processor
-
doPost(HttpServletRequest, HttpServletResponse)
- Service post requests.
-
doRequest(HttpServletRequest, HttpServletResponse)
- Process a servlet Request
-
getAccount(View)
- get the currently logged in account from the accountAttributeName
session attribute
-
getBaseDirectory()
- Get the base directory (document root) of the html server.
-
getContextName()
- Get the context name for this site.
-
getDefaultPage()
- Return this site's default page.
-
getLoginPage()
- Return this site's login page.
-
getRefusePage()
- Return the page that should handle permission denied problems
-
htmlPage(View, String)
- Emit the argument string to the browser enclosed in htmlPageOpen()
and htmlPageClose() output.
-
htmlPageClose(View)
- Return this site's convention for closing a web page
typically "