|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.servlet.GenericServlet
javax.servlet.http.HttpServlet
no.feide.moria.servlet.MoriaServlet
no.feide.moria.servlet.InformationServlet
public class InformationServlet
This servlet is responsible for retrieving information about a user, and sending it to information.jsp for display.
| Field Summary | |
|---|---|
private FileMonitor |
feideattribsMonitor
Monitor for the attribute description file. |
private java.util.HashMap |
feideattribsStored
A hash map containing all possible attributes for a user. |
private no.feide.moria.log.MessageLogger |
log
Used for logging. |
private static java.lang.String |
PRINCIPAL
Principal name of the service. |
private static java.lang.String[] |
REQUIRED_PARAMETERS
List of parameters required by InformationServlet. |
| Constructor Summary | |
|---|---|
InformationServlet()
Constructor. |
|
| Method Summary | |
|---|---|
void |
doGet(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Implements the HttpServlet.doGet method. |
void |
doPost(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Implements the HttpServlet.doPost method. |
private java.lang.String |
getAllAttributes()
Builds a list of all possible user attributes. |
java.util.HashMap |
getAttribs()
Implements a simple xml parser that parses the attribute description file into a HashMap with AttribsData instances. |
static java.lang.String[] |
getRequiredParameters()
|
private java.util.Vector |
printTableToVector(java.util.Map userData,
java.util.ResourceBundle bundle)
Generates table for a user. |
| Methods inherited from class no.feide.moria.servlet.MoriaServlet |
|---|
getServletConfig |
| Methods inherited from class javax.servlet.http.HttpServlet |
|---|
doDelete, doHead, doOptions, doPut, doTrace, getLastModified, service, service |
| Methods inherited from class javax.servlet.GenericServlet |
|---|
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, init, log, log |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private java.util.HashMap feideattribsStored
private FileMonitor feideattribsMonitor
private static final java.lang.String PRINCIPAL
private final no.feide.moria.log.MessageLogger log
private static final java.lang.String[] REQUIRED_PARAMETERS
InformationServlet.
RequestUtil.PROP_COOKIE_LANG
RequestUtil.PROP_COOKIE_LANG_TTL
RequestUtil.PROP_COOKIE_DENYSSO
RequestUtil.PROP_LOGIN_TICKET_PARAM
RequestUtil.PROP_INFORMATION_URL_PREFIX
RequestUtil.PROP_INFORMATION_DESCRIPTIONS
RequestUtil.PIC_LINK
RequestUtil.PROP_COOKIE_LANG,
RequestUtil.PROP_COOKIE_LANG_TTL,
RequestUtil.PROP_COOKIE_DENYSSO,
RequestUtil.PROP_LOGIN_TICKET_PARAM,
RequestUtil.PROP_INFORMATION_URL_PREFIX,
RequestUtil.PROP_INFORMATION_DESCRIPTIONS,
RequestUtil.PIC_LINK| Constructor Detail |
|---|
public InformationServlet()
| Method Detail |
|---|
public static java.lang.String[] getRequiredParameters()
public final java.util.HashMap getAttribs()
AttribsData
private java.util.Vector printTableToVector(java.util.Map userData,
java.util.ResourceBundle bundle)
userData - The user data.bundle - Resource bundle for language.
public final void doGet(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws javax.servlet.ServletException,
java.io.IOException
doGet in class javax.servlet.http.HttpServletrequest - The HTTP request.response - The HTTP response.
java.io.IOException - If getAttribs returns null.
javax.servlet.ServletException - If the Moria controller throws an exception.HttpServlet.doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)
public final void doPost(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws javax.servlet.ServletException,
java.io.IOException
doPost in class javax.servlet.http.HttpServletrequest - The HTTP request.response - The HTTP response.
java.io.IOException - Required by interface.
javax.servlet.ServletException - If the Moria controller throws an exception.HttpServlet.doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)private java.lang.String getAllAttributes()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||