Class TestServlet

  • All Implemented Interfaces:
    jakarta.servlet.Servlet, jakarta.servlet.ServletConfig, Serializable

    @WebServlet(urlPatterns="/")
    public class TestServlet
    extends jakarta.servlet.http.HttpServlet
    Useful for simple testing of the server.
    Author:
    David Matejcek
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      TestServlet()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void doGet​(jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse resp)  
      • Methods inherited from class jakarta.servlet.http.HttpServlet

        doDelete, doHead, doOptions, doPost, doPut, doTrace, getLastModified, service, service
      • Methods inherited from class jakarta.servlet.GenericServlet

        destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, init, log, log
    • Field Detail

      • RESPONSE_TEXT

        public static final String RESPONSE_TEXT
    • Constructor Detail

      • TestServlet

        public TestServlet()
    • Method Detail

      • doGet

        public void doGet​(jakarta.servlet.http.HttpServletRequest req,
                          jakarta.servlet.http.HttpServletResponse resp)
                   throws IOException
        Overrides:
        doGet in class jakarta.servlet.http.HttpServlet
        Throws:
        IOException