Package com.sun.ts.tests.common.web
Class ServletWrapper
java.lang.Object
jakarta.servlet.GenericServlet
jakarta.servlet.http.HttpServlet
com.sun.ts.tests.common.web.ServletWrapper
- All Implemented Interfaces:
- jakarta.servlet.Servlet,- jakarta.servlet.ServletConfig,- Serializable
public abstract class ServletWrapper
extends jakarta.servlet.http.HttpServlet
Provide a testing framework for a Servlet test.
 This class is intended to be extended by the actual Servlet test class that will define one or more test methods.
 This is why this class is tagged "abstract".
 This class shield the final Servlet class from Servlet life cycle and specific testing framework.
- See Also:
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprotected static TSNamingContextstatic final StringName of property used to send back test result to clientstatic final StringFields inherited from class jakarta.servlet.http.HttpServletLEGACY_DO_HEAD
- 
Constructor SummaryConstructors
- 
Method SummaryMethods inherited from class jakarta.servlet.http.HttpServletdoDelete, doHead, doOptions, doPatch, doPut, doTrace, getLastModified, isSensitiveHeader, service, serviceMethods inherited from class jakarta.servlet.GenericServletdestroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, log
- 
Field Details- 
RESULT_PROPName of property used to send back test result to client- See Also:
 
- 
TEST_NAME_PROP- See Also:
 
- 
nctx
 
- 
- 
Constructor Details- 
ServletWrapperpublic ServletWrapper()
 
- 
- 
Method Details- 
initpublic void init(jakarta.servlet.ServletConfig config) throws jakarta.servlet.ServletException - Specified by:
- initin interface- jakarta.servlet.Servlet
- Overrides:
- initin class- jakarta.servlet.http.HttpServlet
- Throws:
- jakarta.servlet.ServletException
 
- 
doGetpublic void doGet(jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse res) throws jakarta.servlet.ServletException, IOException - Overrides:
- doGetin class- jakarta.servlet.http.HttpServlet
- Throws:
- jakarta.servlet.ServletException
- IOException
 
- 
doPostpublic void doPost(jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse res) throws jakarta.servlet.ServletException, IOException - Overrides:
- doPostin class- jakarta.servlet.http.HttpServlet
- Throws:
- jakarta.servlet.ServletException
- IOException
 
 
-