
public class ServletTestRunner
extends jakarta.servlet.http.HttpServlet
The server side executor for the Servlet protocol impl.
Supports multiple output modes ("outputmode"): - html - serializedObject
| Modifier and Type | Field and Description |
|---|---|
static String |
CMD_NAME_EVENT |
static String |
CMD_NAME_TEST |
static String |
OUTPUT_MODE_HTML |
static String |
OUTPUT_MODE_SERIALIZED |
static String |
PARA_CLASS_NAME |
static String |
PARA_CMD_NAME |
static String |
PARA_METHOD_NAME |
static String |
PARA_OUTPUT_MODE |
| Constructor and Description |
|---|
ServletTestRunner() |
| Modifier and Type | Method and Description |
|---|---|
void |
destroy() |
protected void |
doGet(jakarta.servlet.http.HttpServletRequest request,
jakarta.servlet.http.HttpServletResponse response) |
protected void |
doPost(jakarta.servlet.http.HttpServletRequest request,
jakarta.servlet.http.HttpServletResponse response) |
protected void |
execute(jakarta.servlet.http.HttpServletRequest request,
jakarta.servlet.http.HttpServletResponse response) |
void |
executeEvent(jakarta.servlet.http.HttpServletRequest request,
jakarta.servlet.http.HttpServletResponse response,
String className,
String methodName) |
void |
executeTest(jakarta.servlet.http.HttpServletResponse response,
String outputMode,
String className,
String methodName) |
static jakarta.servlet.ServletContext |
getCurrentServletContext() |
void |
init() |
doDelete, doHead, doOptions, doPut, doTrace, getLastModified, service, servicepublic static final String PARA_METHOD_NAME
public static final String PARA_CLASS_NAME
public static final String PARA_OUTPUT_MODE
public static final String PARA_CMD_NAME
public static final String OUTPUT_MODE_SERIALIZED
public static final String OUTPUT_MODE_HTML
public static final String CMD_NAME_TEST
public static final String CMD_NAME_EVENT
public static jakarta.servlet.ServletContext getCurrentServletContext()
public void init()
throws jakarta.servlet.ServletException
init in class jakarta.servlet.GenericServletjakarta.servlet.ServletExceptionpublic void destroy()
destroy in interface jakarta.servlet.Servletdestroy in class jakarta.servlet.GenericServletprotected void doPost(jakarta.servlet.http.HttpServletRequest request,
jakarta.servlet.http.HttpServletResponse response)
throws jakarta.servlet.ServletException,
IOException
doPost in class jakarta.servlet.http.HttpServletjakarta.servlet.ServletExceptionIOExceptionprotected void doGet(jakarta.servlet.http.HttpServletRequest request,
jakarta.servlet.http.HttpServletResponse response)
throws jakarta.servlet.ServletException,
IOException
doGet in class jakarta.servlet.http.HttpServletjakarta.servlet.ServletExceptionIOExceptionprotected void execute(jakarta.servlet.http.HttpServletRequest request,
jakarta.servlet.http.HttpServletResponse response)
throws jakarta.servlet.ServletException,
IOException
jakarta.servlet.ServletExceptionIOExceptionpublic void executeTest(jakarta.servlet.http.HttpServletResponse response,
String outputMode,
String className,
String methodName)
throws ClassNotFoundException,
IOException
ClassNotFoundExceptionIOExceptionpublic void executeEvent(jakarta.servlet.http.HttpServletRequest request,
jakarta.servlet.http.HttpServletResponse response,
String className,
String methodName)
throws ClassNotFoundException,
IOException
ClassNotFoundExceptionIOExceptionCopyright © 2021 JBoss by Red Hat. All rights reserved.