Class GenericTCKServlet

java.lang.Object
jakarta.servlet.GenericServlet
ee.jakarta.tck.pages.common.servlet.GenericTCKServlet
All Implemented Interfaces:
jakarta.servlet.Servlet, jakarta.servlet.ServletConfig, Serializable

public abstract class GenericTCKServlet extends jakarta.servlet.GenericServlet
GenericTCKServlet.java Any test that would normally extend GenericServlet will instead extend this class. This will provide a simple framework from invoking various tests defined as methods within the servlet that extends this class. Created: Wed Jul 31 20:57:16 2002
Version:
%I%
Author:
Ryan Lubke
See Also:
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    init(jakarta.servlet.ServletConfig config)
    init initializes the servlet.
    protected void
    invokeTest(jakarta.servlet.ServletRequest req, jakarta.servlet.ServletResponse res)
    invokeTest uses reflection to invoke test methods in child classes of this particular class.
    void
    service(jakarta.servlet.ServletRequest req, jakarta.servlet.ServletResponse res)
     

    Methods inherited from class jakarta.servlet.GenericServlet

    destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, log

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • GenericTCKServlet

      public GenericTCKServlet()
  • Method Details

    • init

      public void init(jakarta.servlet.ServletConfig config) throws jakarta.servlet.ServletException
      init initializes the servlet.
      Specified by:
      init in interface jakarta.servlet.Servlet
      Overrides:
      init in class jakarta.servlet.GenericServlet
      Parameters:
      config - - ServletConfig
      Throws:
      jakarta.servlet.ServletException
    • service

      public void service(jakarta.servlet.ServletRequest req, jakarta.servlet.ServletResponse res) throws jakarta.servlet.ServletException, IOException
      Specified by:
      service in interface jakarta.servlet.Servlet
      Specified by:
      service in class jakarta.servlet.GenericServlet
      Throws:
      jakarta.servlet.ServletException
      IOException
    • invokeTest

      protected void invokeTest(jakarta.servlet.ServletRequest req, jakarta.servlet.ServletResponse res) throws jakarta.servlet.ServletException
      invokeTest uses reflection to invoke test methods in child classes of this particular class.
      Parameters:
      req - - ServletRequest
      res - - ServletResponse
      Throws:
      jakarta.servlet.ServletException - if an error occurs