Interface ApacheHttpClient5TransportBuilder.HttpClientConfigCallback

  • Enclosing class:
    ApacheHttpClient5TransportBuilder

    public static interface ApacheHttpClient5TransportBuilder.HttpClientConfigCallback
    Callback used to customize the CloseableHttpClient instance used by a RestClient instance. Allows to customize default RequestConfig being set to the client and any parameter that can be set through HttpClientBuilder
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      org.apache.hc.client5.http.impl.async.HttpAsyncClientBuilder customizeHttpClient​(org.apache.hc.client5.http.impl.async.HttpAsyncClientBuilder httpClientBuilder)
      Allows to customize the CloseableHttpAsyncClient being created and used by the RestClient.
    • Method Detail

      • customizeHttpClient

        org.apache.hc.client5.http.impl.async.HttpAsyncClientBuilder customizeHttpClient​(org.apache.hc.client5.http.impl.async.HttpAsyncClientBuilder httpClientBuilder)
        Allows to customize the CloseableHttpAsyncClient being created and used by the RestClient. Commonly used to customize the default CredentialsProvider for authentication for communication through TLS/SSL without losing any other useful default value that the RestClientBuilder internally sets, like connection pooling.
        Parameters:
        httpClientBuilder - the HttpClientBuilder for customizing the client instance.