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 Type
    Method
    Description
    org.apache.http.impl.client.CloseableHttpClient
    getClient(ClientProperties clientProperties)
    Get an HttpClient instance with the provided connection manager and request configuration.
  • Method Details

    • getClient

      org.apache.http.impl.client.CloseableHttpClient getClient(ClientProperties clientProperties)
      Get an HttpClient instance with the provided connection manager and request configuration.
      Parameters:
      clientProperties - the clientProperties for configuring the HttpClient.
      Returns:
      an HttpClient configured with the given connection manager and request config.