public class StdHttpClient extends Object implements HttpClient
Modifier and Type | Class and Description |
---|---|
static class |
StdHttpClient.Builder |
Constructor and Description |
---|
StdHttpClient(org.apache.http.client.HttpClient hc) |
StdHttpClient(org.apache.http.client.HttpClient hc,
org.apache.http.client.HttpClient backend) |
Modifier and Type | Method and Description |
---|---|
HttpResponse |
copy(String sourceUri,
String destination) |
HttpResponse |
delete(String uri) |
HttpResponse |
get(String uri) |
HttpResponse |
get(String uri,
Map<String,String> headers) |
HttpResponse |
getUncached(String uri) |
HttpResponse |
head(String uri) |
HttpResponse |
post(String uri,
InputStream content) |
HttpResponse |
post(String uri,
String content) |
HttpResponse |
postUncached(String uri,
String content) |
HttpResponse |
put(String uri) |
HttpResponse |
put(String uri,
InputStream data,
String contentType,
long contentLength) |
HttpResponse |
put(String uri,
String content) |
void |
shutdown() |
public StdHttpClient(org.apache.http.client.HttpClient hc)
public StdHttpClient(org.apache.http.client.HttpClient hc, org.apache.http.client.HttpClient backend)
public HttpResponse delete(String uri)
delete
in interface HttpClient
public HttpResponse get(String uri)
get
in interface HttpClient
public HttpResponse get(String uri, Map<String,String> headers)
get
in interface HttpClient
public HttpResponse getUncached(String uri)
getUncached
in interface HttpClient
public HttpResponse postUncached(String uri, String content)
postUncached
in interface HttpClient
public HttpResponse post(String uri, String content)
post
in interface HttpClient
public HttpResponse post(String uri, InputStream content)
post
in interface HttpClient
public HttpResponse put(String uri, String content)
put
in interface HttpClient
public HttpResponse put(String uri)
put
in interface HttpClient
public HttpResponse put(String uri, InputStream data, String contentType, long contentLength)
put
in interface HttpClient
public HttpResponse head(String uri)
head
in interface HttpClient
public HttpResponse copy(String sourceUri, String destination)
copy
in interface HttpClient
public void shutdown()
shutdown
in interface HttpClient
Copyright © 2013. All Rights Reserved.