public class RestTemplate extends Object
Constructor and Description |
---|
RestTemplate(HttpClient client) |
Modifier and Type | Method and Description |
---|---|
<T> T |
copy(String path,
String destinationUri,
ResponseCallback<T> callback) |
void |
delete(String path) |
<T> T |
delete(String path,
ResponseCallback<T> callback) |
HttpResponse |
get(String path) |
<T> T |
get(String path,
ResponseCallback<T> callback) |
HttpResponse |
getUncached(String path) |
<T> T |
getUncached(String path,
ResponseCallback<T> callback) |
<T> T |
head(String path,
ResponseCallback<T> callback) |
<T> T |
post(String path,
InputStream content,
ResponseCallback<T> callback) |
HttpResponse |
post(String path,
String content) |
<T> T |
post(String path,
String content,
ResponseCallback<T> callback) |
HttpResponse |
postUncached(String path,
String content) |
<T> T |
postUncached(String path,
String content,
ResponseCallback<T> callback) |
void |
put(String path) |
void |
put(String path,
InputStream data,
String contentType,
long contentLength) |
<T> T |
put(String path,
InputStream data,
String contentType,
long contentLength,
ResponseCallback<T> callback) |
void |
put(String path,
String content) |
<T> T |
put(String path,
String content,
ResponseCallback<T> callback) |
public RestTemplate(HttpClient client)
public <T> T get(String path, ResponseCallback<T> callback)
public <T> T getUncached(String path, ResponseCallback<T> callback)
public HttpResponse get(String path)
public HttpResponse getUncached(String path)
public void put(String path)
public <T> T put(String path, String content, ResponseCallback<T> callback)
public <T> T copy(String path, String destinationUri, ResponseCallback<T> callback)
public void put(String path, InputStream data, String contentType, long contentLength)
public <T> T put(String path, InputStream data, String contentType, long contentLength, ResponseCallback<T> callback)
public <T> T post(String path, String content, ResponseCallback<T> callback)
public <T> T post(String path, InputStream content, ResponseCallback<T> callback)
public <T> T postUncached(String path, String content, ResponseCallback<T> callback)
public HttpResponse post(String path, String content)
public HttpResponse postUncached(String path, String content)
public <T> T delete(String path, ResponseCallback<T> callback)
public void delete(String path)
public <T> T head(String path, ResponseCallback<T> callback)
Copyright © 2013. All Rights Reserved.