Class ServletTestRunner

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

    public class ServletTestRunner
    extends jakarta.servlet.http.HttpServlet
    ServletTestRunner

    The server side executor for the Servlet protocol impl.

    Supports multiple output modes ("outputmode"): - html - serializedObject

    Version:
    $Revision: $
    Author:
    Aslak Knutsen
    See Also:
    Serialized Form
    • Constructor Detail

      • ServletTestRunner

        public ServletTestRunner()
    • Method Detail

      • getCurrentServletContext

        public static jakarta.servlet.ServletContext getCurrentServletContext()
      • init

        public void init()
                  throws jakarta.servlet.ServletException
        Overrides:
        init in class jakarta.servlet.GenericServlet
        Throws:
        jakarta.servlet.ServletException
      • destroy

        public void destroy()
        Specified by:
        destroy in interface jakarta.servlet.Servlet
        Overrides:
        destroy in class jakarta.servlet.GenericServlet
      • doPost

        protected void doPost​(jakarta.servlet.http.HttpServletRequest request,
                              jakarta.servlet.http.HttpServletResponse response)
                       throws jakarta.servlet.ServletException,
                              IOException
        Overrides:
        doPost in class jakarta.servlet.http.HttpServlet
        Throws:
        jakarta.servlet.ServletException
        IOException
      • doGet

        protected void doGet​(jakarta.servlet.http.HttpServletRequest request,
                             jakarta.servlet.http.HttpServletResponse response)
                      throws jakarta.servlet.ServletException,
                             IOException
        Overrides:
        doGet in class jakarta.servlet.http.HttpServlet
        Throws:
        jakarta.servlet.ServletException
        IOException
      • execute

        protected void execute​(jakarta.servlet.http.HttpServletRequest request,
                               jakarta.servlet.http.HttpServletResponse response)
                        throws jakarta.servlet.ServletException,
                               IOException
        Throws:
        jakarta.servlet.ServletException
        IOException