Package org.dlese.dpc.dds
Class DDSServlet
java.lang.Object
javax.servlet.GenericServlet
javax.servlet.http.HttpServlet
org.dlese.dpc.dds.DDSServlet
- All Implemented Interfaces:
Serializable,Servlet,ServletConfig
Provided as an administrative and intialization servlet for the Digital Discovery System (DDS).
- Author:
- John Weatherley, Dave Deniman, Ryan Deardorff
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddestroy()Shut down sequence.voiddoGet(HttpServletRequest request, HttpServletResponse response) The standard required servlet method, just parses the request header for known parameters.voiddoPost(HttpServletRequest request, HttpServletResponse response) Standard doPost method forwards to doGetstatic StringReturn a string for the current time and date, sutiable for display in log files and output to standout:voidinit(ServletConfig config) The standardHttpServletinit method, called only when the servlet is first loaded.static voidSets the "noDisplay" property of collection vocab nodes according the results of the repository manager's getEnabledSetsHashMap()final voidsetDebug(boolean db) Sets the debug attribute of the DDSServlet objectMethods inherited from class javax.servlet.http.HttpServlet
doDelete, doHead, doOptions, doPut, doTrace, getLastModified, service, serviceMethods inherited from class javax.servlet.GenericServlet
getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, log
-
Constructor Details
-
DDSServlet
public DDSServlet()Constructor for the DDSServlet object
-
-
Method Details
-
init
The standardHttpServletinit method, called only when the servlet is first loaded.- Specified by:
initin interfaceServlet- Overrides:
initin classGenericServlet- Parameters:
config-- Throws:
ServletException
-
destroy
public void destroy()Shut down sequence.- Specified by:
destroyin interfaceServlet- Overrides:
destroyin classGenericServlet
-
doPost
public void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException Standard doPost method forwards to doGet- Overrides:
doPostin classHttpServlet- Parameters:
request-response-- Throws:
ServletExceptionIOException
-
doGet
public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException The standard required servlet method, just parses the request header for known parameters. ThedoPostmethod just calls this one. SeeHttpServletfor details.- Overrides:
doGetin classHttpServlet- Parameters:
request-response-- Throws:
ServletExceptionIOException
-
setCollectionsVocabDisplay
Sets the "noDisplay" property of collection vocab nodes according the results of the repository manager's getEnabledSetsHashMap()- Parameters:
vocab- The new collectionsVocabDisplay valuerm- The new collectionsVocabDisplay value
-
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
-