Class RESTTestRunner
java.lang.Object
org.jboss.arquillian.protocol.rest.runner.RESTTestRunner
RESTTestRunner
The server side executor for the REST protocol impl.
Supports multiple output modes ("outputmode"): - html - serializedObject A conversion of the ServletTestRunner to use RESTful Web Services instead.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionjakarta.ws.rs.core.Responsejakarta.ws.rs.core.Responseprotected jakarta.ws.rs.core.ResponsevoidexecuteEvent(byte[] cmdObject, jakarta.ws.rs.core.Response.ResponseBuilder response, String className, String methodName) voidexecuteTest(jakarta.ws.rs.core.Response.ResponseBuilder response, String outputMode, String className, String methodName)
-
Field Details
-
PARA_METHOD_NAME
- See Also:
-
PARA_CLASS_NAME
- See Also:
-
PARA_OUTPUT_MODE
- See Also:
-
PARA_CMD_NAME
- See Also:
-
OUTPUT_MODE_SERIALIZED
- See Also:
-
OUTPUT_MODE_HTML
- See Also:
-
CMD_NAME_TEST
- See Also:
-
CMD_NAME_EVENT
- See Also:
-
-
Constructor Details
-
RESTTestRunner
public RESTTestRunner()
-
-
Method Details
-
doPost
@POST public jakarta.ws.rs.core.Response doPost(@QueryParam("outputMode") String outputMode, @QueryParam("className") String className, @QueryParam("methodName") String methodName, @QueryParam("cmd") String cmd, byte[] cmdObject) throws jakarta.ws.rs.WebApplicationException, IOException - Throws:
jakarta.ws.rs.WebApplicationExceptionIOException
-
doGet
@GET public jakarta.ws.rs.core.Response doGet(@QueryParam("outputMode") String outputMode, @QueryParam("className") String className, @QueryParam("methodName") String methodName, @QueryParam("cmd") String cmd) throws jakarta.ws.rs.WebApplicationException, IOException - Throws:
jakarta.ws.rs.WebApplicationExceptionIOException
-
execute
protected jakarta.ws.rs.core.Response execute(String outputMode, String className, String methodName, String cmd, byte[] cmdObject) throws jakarta.ws.rs.WebApplicationException, IOException - Throws:
jakarta.ws.rs.WebApplicationExceptionIOException
-
executeTest
public void executeTest(jakarta.ws.rs.core.Response.ResponseBuilder response, String outputMode, String className, String methodName) throws ClassNotFoundException, IOException - Throws:
ClassNotFoundExceptionIOException
-
executeEvent
public void executeEvent(byte[] cmdObject, jakarta.ws.rs.core.Response.ResponseBuilder response, String className, String methodName) throws ClassNotFoundException, IOException - Throws:
ClassNotFoundExceptionIOException
-