|
||||||||||
| 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.StatusServlet
public class StatusServlet
The StatusServlet shows the status of Moria.
| Field Summary | |
|---|---|
private java.util.HashMap |
backendDataUsers
A hash map containing the attributes for a test-user. |
private no.feide.moria.log.MessageLogger |
log
Used for logging. |
private static java.lang.String[] |
REQUIRED_PARAMETERS
List of parameters required by StatusServlet. |
private static java.lang.String |
STATUS_ATTRIBUTE
The organization the test user comes from. |
private static java.lang.String |
STATUS_PRINCIPAL
The name of the service. |
private FileMonitor |
statusFileMonitor
Monitor for the status xml file. |
| Constructor Summary | |
|---|---|
StatusServlet()
|
|
| Method Summary | |
|---|---|
java.util.Vector |
checkBackend(java.util.ResourceBundle bundle)
|
private java.util.Vector |
checkConfigStatus(java.util.ResourceBundle bundle)
Checks the config |
private java.util.Vector |
checkModules(java.util.ResourceBundle bundle)
Checks the modules |
private java.util.Vector |
checkSoap(java.util.ResourceBundle bundle)
Checks the SOAP page. |
void |
doGet(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Handles the GET requests. |
java.util.HashMap |
getBackendStatusData()
Implements a simple xml parser that parses the status.xml file into a HashMap with BackendStatusUser instances. |
private java.util.Properties |
getConfig()
Get this servlet's configuration from the web module, given by RequestUtil.PROP_CONFIG. |
static java.lang.String[] |
getRequiredParameters()
|
private void |
printTable()
|
| Methods inherited from class no.feide.moria.servlet.MoriaServlet |
|---|
getServletConfig |
| Methods inherited from class javax.servlet.http.HttpServlet |
|---|
doDelete, doHead, doOptions, doPost, 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 final no.feide.moria.log.MessageLogger log
private static final java.lang.String[] REQUIRED_PARAMETERS
StatusServlet.
RequestUtil.PROP_BACKENDSTATUS_STATUS_XML
RequestUtil.PROP_BACKENDSTATUS_STATUS_XMLprivate java.util.HashMap backendDataUsers
private FileMonitor statusFileMonitor
private static final java.lang.String STATUS_ATTRIBUTE
private static final java.lang.String STATUS_PRINCIPAL
| Constructor Detail |
|---|
public StatusServlet()
| Method Detail |
|---|
public static java.lang.String[] getRequiredParameters()
public final java.util.HashMap getBackendStatusData()
BackendStatusHandler,
BackendStatusUserprivate void printTable()
private java.util.Vector checkConfigStatus(java.util.ResourceBundle bundle)
bundle -
private java.util.Vector checkModules(java.util.ResourceBundle bundle)
bundle -
private java.util.Vector checkSoap(java.util.ResourceBundle bundle)
bundle -
public java.util.Vector checkBackend(java.util.ResourceBundle bundle)
public final void doGet(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws java.io.IOException,
javax.servlet.ServletException
doGet in class javax.servlet.http.HttpServletrequest - The HTTP request object.response - The HTTP response object.
java.io.IOException - If an input or output error is detected when the servlet
handles the GET request.
javax.servlet.ServletException - If the request for the GET could not be handled.HttpServlet.doGet(javax.servlet.http.HttpServletRequest,
javax.servlet.http.HttpServletResponse)private java.util.Properties getConfig()
RequestUtil.PROP_CONFIG.
java.lang.IllegalStateException - If unable to read the current configuration from the servlet
context, and there is no previous configuration. Also thrown
if any of the required parameters (given by
REQUIRED_PARAMETERS) are not set.REQUIRED_PARAMETERS,
RequestUtil.PROP_CONFIG
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||