Interface HttpClientProvider

    • Method Detail

      • getHttpClient

        org.apache.http.impl.client.CloseableHttpClient getHttpClient()
        Returns the CloseableHttpClient that can be freely used.

        The returned HttpClient instance must never be close()d by the caller.

        Closing the HttpClient instance is responsibility of this provider. However, the objects created via the returned HttpClient need to be closed properly by the code that instantiated them.