public class ApacheHttpClient extends Object implements HttpClient
Constructor and Description |
---|
ApacheHttpClient(Builder<org.apache.http.client.HttpClient> clientBuilder,
Builder<org.apache.http.protocol.HttpContext> localContextBuilder) |
Modifier and Type | Method and Description |
---|---|
HttpResponse |
delete(URL url) |
HttpResponse |
get(URL url) |
HttpResponse |
get(URL url,
Headers headers) |
HttpResponse |
options(URL url) |
HttpResponse |
post(URL url,
HttpPost message) |
HttpResponse |
put(URL url,
HttpPut message) |
void |
shutdown() |
public HttpResponse get(URL url, Headers headers) throws HttpException
get
in interface HttpClient
HttpException
public HttpResponse get(URL url) throws HttpException
get
in interface HttpClient
HttpException
public HttpResponse post(URL url, HttpPost message) throws HttpException
post
in interface HttpClient
HttpException
public HttpResponse put(URL url, HttpPut message)
put
in interface HttpClient
public HttpResponse delete(URL url) throws HttpException
delete
in interface HttpClient
HttpException
public HttpResponse options(URL url) throws HttpException
options
in interface HttpClient
HttpException
public void shutdown()
shutdown
in interface HttpClient
Copyright © 2013. All rights reserved.