|
||||||||||
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
org.aselect.system.sam.service.SAMServiceServlet
public abstract class SAMServiceServlet
Abstract class for the SAM Service servlets like in A-Select Server and
A-Select AuthSPServer.
Description:
The SAM Service Abstract class, that contains basic information
Concurrency issues:
-
Field Summary | |
---|---|
protected java.util.Hashtable |
_htOIDs
Contains all known OID's, has to be expanded with specific OID's. |
protected java.lang.String |
_sSAMServiceForm
Contains the samservice.html HTML template if it was found during initialize. |
protected java.lang.String |
_sSAMServiceStatusForm
Contains the samservice_status.html HTML template if it was found during initialize. |
protected java.lang.String |
_sWorkingDir
The directory that contains the html templates: samservice.html and samservice_status.html. |
Constructor Summary | |
---|---|
SAMServiceServlet()
|
Method Summary | |
---|---|
void |
destroy()
Calls the default destroy method of the super class. |
protected java.util.Hashtable |
getCommonSAMInfo()
Returns a Hashtable containing common statistics. |
protected java.lang.String |
getContextUrl()
Used to retrieve the URL of the context where this servlet is located. |
protected abstract java.util.Hashtable |
getSAMInfo()
Used to retrieve all SAM information. |
protected abstract java.lang.String |
getSysDescr()
Used to retrieve the system description. |
protected abstract SystemLogger |
getSystemLogger()
Method that enforces to set the SystemLogger by the sub
class. |
protected abstract java.lang.String |
getVersion()
Used to retrieve the version of the component. |
void |
init(javax.servlet.ServletConfig oServletConfig)
The initialize method for initializing the SAM Service. |
protected abstract int |
operational()
Used to check if the servlet is operational or not. |
protected void |
service(javax.servlet.http.HttpServletRequest oHttpServletRequest,
javax.servlet.http.HttpServletResponse oHttpServletResponse)
Handles incoming HTTP GET and POST requests. |
Methods inherited from class javax.servlet.http.HttpServlet |
---|
doDelete, doGet, doHead, doOptions, doPost, doPut, doTrace, getLastModified, 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 |
---|
protected java.util.Hashtable _htOIDs
protected java.lang.String _sWorkingDir
protected java.lang.String _sSAMServiceForm
protected java.lang.String _sSAMServiceStatusForm
Constructor Detail |
---|
public SAMServiceServlet()
Method Detail |
---|
public void init(javax.servlet.ServletConfig oServletConfig) throws javax.servlet.ServletException
_htOIDs
will be filled with the default OID's.
init
in interface javax.servlet.Servlet
init
in class javax.servlet.GenericServlet
javax.servlet.ServletException
Servlet.init(javax.servlet.ServletConfig)
public void destroy()
destroy
in interface javax.servlet.Servlet
destroy
in class javax.servlet.GenericServlet
GenericServlet.destroy()
protected abstract SystemLogger getSystemLogger()
SystemLogger
by the sub
class.
protected abstract java.util.Hashtable getSAMInfo()
Hashtable
that contains the OID (as key) and the OID
value (as value).protected java.lang.String getContextUrl()
String
representaion of the context URL of this
servlet.protected abstract int operational()
int that represents if the servlet is operational (1)
or not (-1).
protected abstract java.lang.String getSysDescr()
String
that contains a description of the system.protected abstract java.lang.String getVersion()
String
containing version informationprotected java.util.Hashtable getCommonSAMInfo()
Hashtable
containing common statistics.
Hashtable
containing the OID (as key) and OID value
(as value).protected void service(javax.servlet.http.HttpServletRequest oHttpServletRequest, javax.servlet.http.HttpServletResponse oHttpServletResponse) throws javax.servlet.ServletException, java.io.IOException
service
in class javax.servlet.http.HttpServlet
javax.servlet.ServletException
java.io.IOException
HttpServlet.service(javax.servlet.http.HttpServletRequest,
javax.servlet.http.HttpServletResponse)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |