public class DefaultClientProvider extends java.lang.Object implements ClientProvider
ClientProvider
that just wraps a HttpClient
instance.Constructor and Description |
---|
DefaultClientProvider(org.apache.hc.client5.http.classic.HttpClient client) |
Modifier and Type | Method and Description |
---|---|
org.apache.hc.client5.http.classic.HttpClient |
getClient()
Called by an API whenever it needs to make an HTTP request.
|
public DefaultClientProvider(org.apache.hc.client5.http.classic.HttpClient client)
client
- the client to return in getClient()
public org.apache.hc.client5.http.classic.HttpClient getClient()
ClientProvider
getClient
in interface ClientProvider
HttpClient
instance to make the request with.