Interface HttpClientProvider
- All Known Implementing Classes:
DefaultHttpClientProvider
public interface HttpClientProvider
Abstraction for getting an
HttpClient
. Implementations can provide specialized clients, e.g. clients
with client-side caching support or connection pooling.-
Method Summary
Modifier and TypeMethodDescriptionorg.apache.http.impl.client.CloseableHttpClient
getClient
(ClientProperties clientProperties) Get anHttpClient
instance with the provided connection manager and request configuration.
-
Method Details
-
getClient
Get anHttpClient
instance with the provided connection manager and request configuration.- Parameters:
clientProperties
- the clientProperties for configuring theHttpClient
.- Returns:
- an
HttpClient
configured with the given connection manager and request config.
-