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, service
public 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.GenericServlet
javax.servlet.ServletException
public void destroy()
destroy
in interface javax.servlet.Servlet
destroy
in class javax.servlet.GenericServlet
protected void doPost(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws javax.servlet.ServletException, IOException
doPost
in class javax.servlet.http.HttpServlet
javax.servlet.ServletException
IOException
protected void doGet(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws javax.servlet.ServletException, IOException
doGet
in class javax.servlet.http.HttpServlet
javax.servlet.ServletException
IOException
protected void execute(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws javax.servlet.ServletException, IOException
javax.servlet.ServletException
IOException
public void executeTest(javax.servlet.http.HttpServletResponse response, String outputMode, String className, String methodName) throws ClassNotFoundException, IOException
ClassNotFoundException
IOException
public void executeEvent(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, String className, String methodName) throws ClassNotFoundException, IOException
ClassNotFoundException
IOException
Copyright © 2017 JBoss by Red Hat. All rights reserved.