com.protomatter.pas
Class PASServlet
java.lang.Object
|
+--javax.servlet.GenericServlet
|
+--javax.servlet.http.HttpServlet
|
+--com.protomatter.pas.PASServlet
- All Implemented Interfaces:
- java.io.Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig
- public final class PASServlet
- extends javax.servlet.http.HttpServlet
The PAS Servlet. All things related to PAS start here. When
this servlet is initialized, it reads the configuration file
(specified with the "properties" initialization argument) and
starts all the configured services. All the real work
is performed by the PASCore class.
- See Also:
PASCore
, Serialized Form
Constructor Summary |
PASServlet()
Default constructor. |
Method Summary |
void |
destroy()
Runs all registered PASShutdown classes. |
static PASServlet |
getInstance()
Get the globally unique instance of PAS. |
java.util.Properties |
getProperties()
Get the system configuration. |
java.lang.String |
getServletInfo()
Return information about this servlet. |
void |
init(javax.servlet.ServletConfig config)
Reads the configuration file (specified with the "properties"
initialization parameter) and starts all configured services. |
void |
service(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp)
Prints out the configuration file as HTML. |
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, getServletName, init, log, log |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PASServlet
public PASServlet()
- Default constructor.
destroy
public void destroy()
- Runs all registered PASShutdown classes.
- Overrides:
destroy
in class javax.servlet.GenericServlet
getServletInfo
public java.lang.String getServletInfo()
- Return information about this servlet.
- Overrides:
getServletInfo
in class javax.servlet.GenericServlet
- See Also:
javax.servlet.GenericSevlet
init
public void init(javax.servlet.ServletConfig config)
throws javax.servlet.ServletException
- Reads the configuration file (specified with the "properties"
initialization parameter) and starts all configured services.
- Overrides:
init
in class javax.servlet.GenericServlet
service
public void service(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp)
throws javax.servlet.ServletException,
java.io.IOException
- Prints out the configuration file as HTML.
- Overrides:
service
in class javax.servlet.http.HttpServlet
getProperties
public java.util.Properties getProperties()
- Get the system configuration. Returns a Properties object
describing the configuration of the system when it was started.
getInstance
public static PASServlet getInstance()
- Get the globally unique instance of PAS.