Class SetupServlet

All Implemented Interfaces:
Serializable, Servlet, ServletConfig

public final class SetupServlet extends HttpServlet
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 Details

    • SetupServlet

      public SetupServlet()
  • Method Details

    • init

      public void init(ServletConfig config) throws ServletException
      Make sure the repository exists and there is a master collection record before the repository manager is initilized in the DDSServlet.
      Specified by:
      init in interface Servlet
      Overrides:
      init in class GenericServlet
      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:
      destroy in interface Servlet
      Overrides:
      destroy in class GenericServlet
    • 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 static void setDebug(boolean d)
      Sets the debug attribute of the SetupServlet class
      Parameters:
      d - The new debug value