DLESE Tools
v1.2

org.dlese.dpc.dds
Class DDSServlet

java.lang.Object
  extended byjavax.servlet.GenericServlet
      extended byjavax.servlet.http.HttpServlet
          extended byorg.dlese.dpc.dds.DDSServlet
All Implemented Interfaces:
Serializable, Servlet, ServletConfig

public class DDSServlet
extends HttpServlet

Provided as an administrative and intialization servlet for the DLESE discovery system. Addtional methods could be implemented here in order to provide dynamic reconfiguration of the system.

Author:
Dave Deniman, John Weatherley
See Also:
Serialized Form

Constructor Summary
DDSServlet()
          Constructor for the DDSServlet object
 
Method Summary
 void destroy()
          Shut down sequence.
 void doGet(HttpServletRequest request, HttpServletResponse response)
          The standard required servlet method, just parses the request header for known parameters.
 void doPost(HttpServletRequest request, HttpServletResponse response)
          Standard doPost method forwards to doGet
static String getDateStamp()
          Return a string for the current time and date, sutiable for display in log files and output to standout:
 void init(ServletConfig config)
          The standard HttpServlet init method, called only when the servlet is first loaded.
 void setDebug(boolean db)
          Sets the debug attribute of the DDSServlet object
 
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
 

Constructor Detail

DDSServlet

public DDSServlet()
Constructor for the DDSServlet object

Method Detail

init

public void init(ServletConfig config)
          throws ServletException
The standard HttpServlet init method, called only when the servlet is first loaded.

Parameters:
config -
Throws:
ServletException

destroy

public void destroy()
Shut down sequence.


doPost

public void doPost(HttpServletRequest request,
                   HttpServletResponse response)
            throws ServletException,
                   IOException
Standard doPost method forwards to doGet

Parameters:
request -
response -
Throws:
ServletException
IOException

doGet

public void doGet(HttpServletRequest request,
                  HttpServletResponse response)
           throws ServletException,
                  IOException
The standard required servlet method, just parses the request header for known parameters. The doPost method just calls this one. See HttpServlet for details.

Parameters:
request -
response -
Throws:
ServletException
IOException

getDateStamp

public static String getDateStamp()
Return a string for the current time and date, sutiable for display in log files and output to standout:

Returns:
The dateStamp value

setDebug

public final void setDebug(boolean db)
Sets the debug attribute of the DDSServlet object

Parameters:
db - The new debug value

DLESE Tools
v1.2