public class ApacheHttpClient extends Object implements HttpClient
HttpClient
backed by Apache HttpClient.Constructor and Description |
---|
ApacheHttpClient(ClientConfiguration config)
Constructor.
|
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)
config
- the client configuration.public HttpResponse execute(HttpRequest request) throws IOException
HttpClient
HttpRequest
and returns a HttpResponse
.execute
in interface HttpClient
request
- a HTTP requestIOException
- in case of a connection problempublic void shutdown()
HttpClient
shutdown
in interface HttpClient
Copyright © 2020. All rights reserved.