public class ApacheHttpClient extends Object implements HttpClient
HttpClient backed by Apache HttpClient.| Constructor and Description |
|---|
ApacheHttpClient(ClientConfiguration config) |
| Modifier and Type | Method and Description |
|---|---|
HttpResponse |
execute(HttpRequest request)
Executes a
HttpRequest and returns a HttpResponse. |
void |
shutdown()
Forcefully shutdown this HTTP client and release all underlying
resources.
|
public ApacheHttpClient(ClientConfiguration config)
public HttpResponse execute(HttpRequest request) throws IOException
HttpClientHttpRequest and returns a HttpResponse.execute in interface HttpClientrequest - a HTTP requestIOException - in case of a connection problempublic void shutdown()
HttpClientshutdown in interface HttpClientCopyright © 2016. All rights reserved.