Package org.gatein.pc.test.unit.web
Class AbstractUniversalTestServlet
java.lang.Object
jakarta.servlet.GenericServlet
jakarta.servlet.http.HttpServlet
org.gatein.pc.test.unit.web.AbstractUniversalTestServlet
- All Implemented Interfaces:
jakarta.servlet.Servlet,jakarta.servlet.ServletConfig,Serializable
public abstract class AbstractUniversalTestServlet
extends jakarta.servlet.http.HttpServlet
Universal test servlet that enables to reuse servlet instances across several tests
- Version:
- $Revision: 7954 $
- Author:
- Boleslaw Dawidowicz
- See Also:
-
Field Summary
Fields inherited from class jakarta.servlet.http.HttpServlet
LEGACY_DO_HEAD -
Constructor Summary
ConstructorsConstructorDescriptionConstruct a test servlet with a test id computed with the methodgetTestId(Class). -
Method Summary
Modifier and TypeMethodDescriptionprotected PortletTestCasegetSequence(String testId) Returns Sequence for current testId Returns null if there is no Sequence for current testIdabstract voidreset()protected voidservice(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response) Standart implementation of service() method to handle requests and invoke actions from sequenceMethods inherited from class jakarta.servlet.http.HttpServlet
doDelete, doGet, doHead, doOptions, doPost, doPut, doTrace, getLastModified, init, serviceMethods inherited from class jakarta.servlet.GenericServlet
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, log
-
Constructor Details
-
AbstractUniversalTestServlet
public AbstractUniversalTestServlet()Construct a test servlet with a test id computed with the methodgetTestId(Class).
-
-
Method Details
-
service
protected void service(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response) throws jakarta.servlet.ServletException, IOException Standart implementation of service() method to handle requests and invoke actions from sequence- Overrides:
servicein classjakarta.servlet.http.HttpServlet- Parameters:
request-response-- Throws:
jakarta.servlet.ServletExceptionIOException
-
getSequence
Returns Sequence for current testId Returns null if there is no Sequence for current testId- Returns:
- Throws:
jakarta.servlet.ServletException- if there is no SequenceRegistry
-
getServiceJointpoint
-
reset
public abstract void reset()
-