All Implemented Interfaces:
Serializable, Servlet, ServletConfig

public class Servletextends HttpServlet
A wrapper for addressbook to allow it to be started as a web application. This was a GenericServlet, we make it an HttpServlet solely to provide a simple page to display status.
See Also:
  • Field Details

    • serialVersionUID

      private static final long serialVersionUID
      Pinned for serialized-form compatibility.
      See Also:
    • thread

      private transient Thread thread
      The worker thread, left out of the serialized form
  • Constructor Details

    • Servlet

      public Servlet()
      A servlet with no addressbook thread yet; init() starts the daemon, so construction alone leaves nothing running.
  • Method Details