Class ResourceLauncher
java.lang.Object
org.exoplatform.services.rest.tools.ResourceLauncher
Request launcher. It can be useful for testing services.
- Version:
- $Id$
- Author:
- Andrey Parfonov
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionservice(String method, String requestURI, String baseURI, Map<String, List<String>> headers, byte[] data, ContainerResponseWriter writer, EnvironmentContext env) service(String method, String requestURI, String baseURI, Map<String, List<String>> headers, byte[] data, EnvironmentContext env)
-
Constructor Details
-
ResourceLauncher
-
-
Method Details
-
service
public ContainerResponse service(String method, String requestURI, String baseURI, Map<String, List<String>> headers, byte[] data, ContainerResponseWriter writer, EnvironmentContext env) throws Exception- Parameters:
method- HTTP methodrequestURI- full requested URIbaseURI- base requested URIheaders- HTTP headersdata- datawriter- response writerenv- environment context- Returns:
- response
- Throws:
Exception- if any error occurs
-
service
public ContainerResponse service(String method, String requestURI, String baseURI, Map<String, List<String>> headers, byte[] data, EnvironmentContext env) throws Exception- Parameters:
method- HTTP methodrequestURI- full requested URIbaseURI- base requested URIheaders- HTTP headersdata- dataenv- environment context- Returns:
- response
- Throws:
Exception- if any error occurs
-