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 -
Method Summary
Modifier and TypeMethodDescriptionvoidinit(jakarta.servlet.ServletConfig config) initinitializes the servlet.protected voidinvokeTest(jakarta.servlet.ServletRequest req, jakarta.servlet.ServletResponse res) invokeTestuses reflection to invoke test methods in child classes of this particular class.voidservice(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
-
Constructor Details
-
GenericTCKServlet
public GenericTCKServlet()
-
-
Method Details
-
init
public void init(jakarta.servlet.ServletConfig config) throws jakarta.servlet.ServletException initinitializes the servlet.- Specified by:
initin interfacejakarta.servlet.Servlet- Overrides:
initin classjakarta.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:
servicein interfacejakarta.servlet.Servlet- Specified by:
servicein classjakarta.servlet.GenericServlet- Throws:
jakarta.servlet.ServletExceptionIOException
-
invokeTest
protected void invokeTest(jakarta.servlet.ServletRequest req, jakarta.servlet.ServletResponse res) throws jakarta.servlet.ServletException invokeTestuses reflection to invoke test methods in child classes of this particular class.- Parameters:
req- -ServletRequestres- -ServletResponse- Throws:
jakarta.servlet.ServletException- if an error occurs
-