public class RestRequest extends Object
Modifier and Type | Field and Description |
---|---|
protected String |
data |
protected Map<String,Object> |
headers |
protected String |
path |
protected javax.ws.rs.core.MultivaluedMap<String,String> |
queryParams |
protected String |
repositoryName |
protected RequestType |
requestType |
protected List<String> |
schemas |
protected com.sun.jersey.api.client.WebResource |
service |
Constructor and Description |
---|
RestRequest(com.sun.jersey.api.client.WebResource service,
String path) |
Modifier and Type | Method and Description |
---|---|
RestRequest |
data(String data) |
RestResponse |
execute() |
String |
getData() |
Map<String,Object> |
getHeaders() |
String |
getPath() |
javax.ws.rs.core.MultivaluedMap<String,String> |
getQueryParams() |
String |
getRepositoryName() |
RequestType |
getRequestType() |
List<String> |
getSchemas() |
RestRequest |
header(String key,
Object value) |
RestRequest |
headers(Map<String,Object> headers) |
RestRequest |
queryParam(String key,
String value) |
RestRequest |
queryParams(javax.ws.rs.core.MultivaluedMap<String,String> queryParams) |
RestRequest |
repositoryName(String repositoryName) |
RestRequest |
requestType(RequestType requestType) |
RestRequest |
schema(String schema) |
RestRequest |
schemas(List<String> schemas) |
protected final com.sun.jersey.api.client.WebResource service
protected RequestType requestType
protected String repositoryName
protected javax.ws.rs.core.MultivaluedMap<String,String> queryParams
public RestRequest(com.sun.jersey.api.client.WebResource service, String path)
public RestRequest requestType(RequestType requestType)
public RestRequest data(String data)
public RestRequest repositoryName(String repositoryName)
public RestRequest schema(String schema)
public RestRequest schemas(List<String> schemas)
public RestRequest header(String key, Object value)
public RestRequest headers(Map<String,Object> headers)
public RestRequest queryParam(String key, String value)
public RestRequest queryParams(javax.ws.rs.core.MultivaluedMap<String,String> queryParams)
public RequestType getRequestType()
public String getRepositoryName()
public List<String> getSchemas()
public Map<String,Object> getHeaders()
public javax.ws.rs.core.MultivaluedMap<String,String> getQueryParams()
public RestResponse execute()
Copyright © 2015 Nuxeo SA. All rights reserved.