|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--javax.servlet.GenericServlet
|
+--javax.servlet.http.HttpServlet
|
+--com.ashridgetech.gen2j.web.LogonServlet
The entry point to
a Gen2J application for all of the Actors. It creates the
appropriate session UCM (a subclass of SessionUCM)
if it does not exist already. It
then forwards the request to the view JSP for that UCM.
LogonServlet is configured with a mapping of path info
to SessionUCM class. One of the mappings may be to
a default class from null path info. The path info obtained
with HttpServletRequest.getPathInfo(), with leading or trailing '/' stripped,
is used to decide which type of session UCM object to create.
The configuration is read from a Properties file at the
location in the web application /WEB-INF/logon.properties.
The properties in this file are in the form:
"pathInfo".class = "session UCM class name"
For example, to specify that the path info /supervisor
should cause a session UCM of the class com.ashridgetech.SupervisorSessionUCM
to be created, use the property:
supervisor.class = com.ashridgetech.SupervisorSessionUCM
The default session class is configured with the property name default.class.
| Field Summary | |
protected String |
configPath
The context-relative path to the configuration properties file. |
static String |
DEFAULT_SESSION_TYPE_KEY
|
static String |
KEY_SUFFIX
|
protected HashMap |
sessionClasses
The mapping of path info strings to session UCM types. |
protected Map |
sessionClassMap
|
| Constructor Summary | |
LogonServlet()
|
|
| Method Summary | |
void |
destroy()
Gracefully shut down this controller servlet, releasing any resources that were allocated at initialization. |
void |
doGet(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Process an HTTP "GET" request. |
void |
doPost(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Process an HTTP "POST" request. |
protected void |
doRequest(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
|
void |
init()
Initialize this servlet. |
protected void |
initConfig()
|
protected SessionUCM |
makeSessionUCM(javax.servlet.http.HttpServletRequest request)
|
| Methods inherited from class javax.servlet.http.HttpServlet |
doDelete, doHead, doOptions, doPut, doTrace, getLastModified, service, service |
| Methods inherited from class javax.servlet.GenericServlet |
getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, log |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final String KEY_SUFFIX
public static final String DEFAULT_SESSION_TYPE_KEY
protected Map sessionClassMap
protected HashMap sessionClasses
protected String configPath
| Constructor Detail |
public LogonServlet()
| Method Detail |
public void destroy()
destroy in class javax.servlet.GenericServlet
public void init()
throws javax.servlet.ServletException
init in class javax.servlet.GenericServletjavax.servlet.ServletException - if we cannot configure ourselves correctly
public void doGet(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws IOException,
javax.servlet.ServletException
doGet in class javax.servlet.http.HttpServletrequest - The servlet request we are processingresponse - The servlet response we are creatingIOException - if an input/output error occursjavax.servlet.ServletException - if a servlet exception occurs
public void doPost(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws IOException,
javax.servlet.ServletException
doPost in class javax.servlet.http.HttpServletrequest - The servlet request we are processingresponse - The servlet response we are creatingIOException - if an input/output error occursjavax.servlet.ServletException - if a servlet exception occurs
protected void doRequest(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws IOException,
javax.servlet.ServletException
protected SessionUCM makeSessionUCM(javax.servlet.http.HttpServletRequest request)
throws javax.servlet.ServletException
protected void initConfig()
throws javax.servlet.ServletException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||