public class ExecutingRestRequest extends Object implements RestRequest
Modifier and Type | Field and Description |
---|---|
static javax.ws.rs.core.MediaType |
STREAMING_JSON_TYPE |
Constructor and Description |
---|
ExecutingRestRequest(String baseUri) |
ExecutingRestRequest(String baseUri,
String username,
String password) |
Modifier and Type | Method and Description |
---|---|
protected void |
addAuthFilter(String username,
String password) |
protected com.sun.jersey.api.client.Client |
createClient() |
RequestResult |
delete(String path) |
static String |
encode(Object value) |
RequestResult |
get(String path) |
RequestResult |
get(String path,
Object data) |
String |
getUri() |
RequestResult |
post(String path,
Object data) |
RequestResult |
put(String path,
Object data) |
static void |
shutdown() |
Map<?,?> |
toMap(RequestResult requestResult) |
protected String |
uriWithoutSlash(String uri) |
RestRequest |
with(String uri) |
public ExecutingRestRequest(String baseUri)
protected com.sun.jersey.api.client.Client createClient()
public RequestResult get(String path)
get
in interface RestRequest
public RequestResult get(String path, Object data)
get
in interface RestRequest
public RequestResult delete(String path)
delete
in interface RestRequest
public RequestResult post(String path, Object data)
post
in interface RestRequest
public RequestResult put(String path, Object data)
put
in interface RestRequest
public RestRequest with(String uri)
with
in interface RestRequest
public String getUri()
getUri
in interface RestRequest
public Map<?,?> toMap(RequestResult requestResult)
toMap
in interface RestRequest
public static void shutdown()
Copyright © 2011-2015–2016 Pivotal Software, Inc.. All rights reserved.