Package org.dlese.dpc.schemedit
Class SetupServlet
java.lang.Object
javax.servlet.GenericServlet
javax.servlet.http.HttpServlet
org.dlese.dpc.schemedit.SetupServlet
- All Implemented Interfaces:
Serializable,Servlet,ServletConfig
Servlet responsible for initializing the schemedit environment, such as the
Framework and CollectionRegistries, that do not require access to the index
or vocabManager.
- Author:
- Jonathan Ostwald
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddestroy()Performs shutdown operations.static StringReturn a string for the current time and date, sutiable for display in log files and output to standout:voidinit(ServletConfig config) Make sure the repository exists and there is a master collection record before the repository manager is initilized in the DDSServlet.static voidsetDebug(boolean d) Sets the debug attribute of the SetupServlet classstatic voidSets the logging attribute of the SetupServlet classMethods inherited from class javax.servlet.http.HttpServlet
doDelete, doGet, doHead, doOptions, doPost, doPut, doTrace, getLastModified, service, serviceMethods inherited from class javax.servlet.GenericServlet
getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, log
-
Constructor Details
-
SetupServlet
public SetupServlet()
-
-
Method Details
-
init
Make sure the repository exists and there is a master collection record before the repository manager is initilized in the DDSServlet.- Specified by:
initin interfaceServlet- Overrides:
initin classGenericServlet- Parameters:
config- Description of the Parameter- Throws:
ServletException- Description of the Exception
-
setLogging
public static void setLogging()Sets the logging attribute of the SetupServlet class -
destroy
public void destroy()Performs shutdown operations.- Specified by:
destroyin interfaceServlet- Overrides:
destroyin classGenericServlet
-
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 static void setDebug(boolean d) Sets the debug attribute of the SetupServlet class- Parameters:
d- The new debug value
-