
public class ServletTestRunner
extends javax.servlet.http.HttpServlet
| 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(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
protected void |
doPost(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
protected void |
execute(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
void |
executeEvent(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
String className,
String methodName) |
void |
executeTest(javax.servlet.http.HttpServletResponse response,
String outputMode,
String className,
String methodName) |
static javax.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 javax.servlet.ServletContext getCurrentServletContext()
public void init()
throws javax.servlet.ServletException
init in class javax.servlet.GenericServletjavax.servlet.ServletExceptionpublic void destroy()
destroy in interface javax.servlet.Servletdestroy in class javax.servlet.GenericServletprotected void doPost(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws javax.servlet.ServletException,
IOException
doPost in class javax.servlet.http.HttpServletjavax.servlet.ServletExceptionIOExceptionprotected void doGet(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws javax.servlet.ServletException,
IOException
doGet in class javax.servlet.http.HttpServletjavax.servlet.ServletExceptionIOExceptionprotected void execute(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws javax.servlet.ServletException,
IOException
javax.servlet.ServletExceptionIOExceptionpublic void executeTest(javax.servlet.http.HttpServletResponse response,
String outputMode,
String className,
String methodName)
throws ClassNotFoundException,
IOException
ClassNotFoundExceptionIOExceptionpublic void executeEvent(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
String className,
String methodName)
throws ClassNotFoundException,
IOException
ClassNotFoundExceptionIOExceptionCopyright © 2015 JBoss by Red Hat. All rights reserved.