public class RestRequest extends Object
Modifier and Type | Field and Description |
---|---|
protected String |
contentType |
protected String |
data |
protected Map<String,Object> |
headers |
protected String |
path |
protected javax.ws.rs.core.MultivaluedMap<String,String> |
queryParams |
protected RequestType |
requestType |
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 |
contentType(String contentType) |
RestResponse |
execute() |
RestResponse |
execute(com.sun.jersey.multipart.MultiPart multiPart) |
String |
getContentType() |
String |
getData() |
Map<String,Object> |
getHeaders() |
String |
getPath() |
javax.ws.rs.core.MultivaluedMap<String,String> |
getQueryParams() |
RequestType |
getRequestType() |
RestRequest |
header(String key,
String value) |
RestRequest |
headers(Map<String,Object> headers) |
RestRequest |
queryParam(String key,
String value) |
RestRequest |
queryParams(javax.ws.rs.core.MultivaluedMap<String,String> queryParams) |
RestRequest |
requestType(RequestType requestType) |
protected com.sun.jersey.api.client.WebResource service
protected RequestType requestType
protected javax.ws.rs.core.MultivaluedMap<String,String> queryParams
protected String contentType
public RestRequest(com.sun.jersey.api.client.WebResource service, String path)
public RestRequest header(String key, String 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 RestRequest requestType(RequestType requestType)
public RestRequest contentType(String contentType)
public RequestType getRequestType()
public Map<String,Object> getHeaders()
public javax.ws.rs.core.MultivaluedMap<String,String> getQueryParams()
public String getContentType()
public RestResponse execute(com.sun.jersey.multipart.MultiPart multiPart)
public RestResponse execute()
Copyright © 2019 Nuxeo. All rights reserved.