Class ServletTestRunner

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

    public class ServletTestRunner
    extends javax.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 javax.servlet.ServletContext getCurrentServletContext()
      • init

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

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

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

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

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