org.jboss.arquillian.protocol.servlet.runner
Class ServletTestRunner

java.lang.Object
  extended by javax.servlet.GenericServlet
      extended by javax.servlet.http.HttpServlet
          extended by org.jboss.arquillian.protocol.servlet.runner.ServletTestRunner
All Implemented Interfaces:
Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig

public class ServletTestRunner
extends javax.servlet.http.HttpServlet

ServletTestRunner The server side executor for the Servlet protocol impl. Supports multiple output modes ("outputmode"): - html - serializedObject

Version:
$Revision: $
Author:
Aslak Knutsen
See Also:
Serialized Form

Field Summary
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 Summary
ServletTestRunner()
           
 
Method Summary
 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)
           
 void init()
           
 
Methods inherited from class javax.servlet.http.HttpServlet
doDelete, doHead, doOptions, doPut, doTrace, getLastModified, service, service
 
Methods inherited from class javax.servlet.GenericServlet
getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, log
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PARA_METHOD_NAME

public static final String PARA_METHOD_NAME
See Also:
Constant Field Values

PARA_CLASS_NAME

public static final String PARA_CLASS_NAME
See Also:
Constant Field Values

PARA_OUTPUT_MODE

public static final String PARA_OUTPUT_MODE
See Also:
Constant Field Values

PARA_CMD_NAME

public static final String PARA_CMD_NAME
See Also:
Constant Field Values

OUTPUT_MODE_SERIALIZED

public static final String OUTPUT_MODE_SERIALIZED
See Also:
Constant Field Values

OUTPUT_MODE_HTML

public static final String OUTPUT_MODE_HTML
See Also:
Constant Field Values

CMD_NAME_TEST

public static final String CMD_NAME_TEST
See Also:
Constant Field Values

CMD_NAME_EVENT

public static final String CMD_NAME_EVENT
See Also:
Constant Field Values
Constructor Detail

ServletTestRunner

public ServletTestRunner()
Method Detail

init

public void init()
          throws javax.servlet.ServletException
Overrides:
init in class javax.servlet.GenericServlet
Throws:
javax.servlet.ServletException

destroy

public void destroy()
Specified by:
destroy in interface javax.servlet.Servlet
Overrides:
destroy in class javax.servlet.GenericServlet

doPost

protected void doPost(javax.servlet.http.HttpServletRequest request,
                      javax.servlet.http.HttpServletResponse response)
               throws javax.servlet.ServletException,
                      IOException
Overrides:
doPost in class javax.servlet.http.HttpServlet
Throws:
javax.servlet.ServletException
IOException

doGet

protected void doGet(javax.servlet.http.HttpServletRequest request,
                     javax.servlet.http.HttpServletResponse response)
              throws javax.servlet.ServletException,
                     IOException
Overrides:
doGet in class javax.servlet.http.HttpServlet
Throws:
javax.servlet.ServletException
IOException

execute

protected void execute(javax.servlet.http.HttpServletRequest request,
                       javax.servlet.http.HttpServletResponse response)
                throws javax.servlet.ServletException,
                       IOException
Throws:
javax.servlet.ServletException
IOException

executeTest

public void executeTest(javax.servlet.http.HttpServletResponse response,
                        String outputMode,
                        String className,
                        String methodName)
                 throws ClassNotFoundException,
                        IOException
Throws:
ClassNotFoundException
IOException

executeEvent

public void executeEvent(javax.servlet.http.HttpServletRequest request,
                         javax.servlet.http.HttpServletResponse response,
                         String className,
                         String methodName)
                  throws ClassNotFoundException,
                         IOException
Throws:
ClassNotFoundException
IOException


Copyright © 2013 JBoss, a division of Red Hat, Inc.. All Rights Reserved.