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.CloseableHttpClientgetClient(ClientProperties clientProperties) Get anHttpClientinstance with the provided connection manager and request configuration.
-
Method Details
-
getClient
Get anHttpClientinstance with the provided connection manager and request configuration.- Parameters:
clientProperties- the clientProperties for configuring theHttpClient.- Returns:
- an
HttpClientconfigured with the given connection manager and request config.
-