Interface ApacheHttpClient5TransportBuilder.HttpClientConfigCallback
-
- Enclosing class:
- ApacheHttpClient5TransportBuilder
public static interface ApacheHttpClient5TransportBuilder.HttpClientConfigCallbackCallback used to customize theCloseableHttpClientinstance used by aRestClientinstance. Allows to customize defaultRequestConfigbeing set to the client and any parameter that can be set throughHttpClientBuilder
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description org.apache.hc.client5.http.impl.async.HttpAsyncClientBuildercustomizeHttpClient(org.apache.hc.client5.http.impl.async.HttpAsyncClientBuilder httpClientBuilder)Allows to customize theCloseableHttpAsyncClientbeing created and used by theRestClient.
-
-
-
Method Detail
-
customizeHttpClient
org.apache.hc.client5.http.impl.async.HttpAsyncClientBuilder customizeHttpClient(org.apache.hc.client5.http.impl.async.HttpAsyncClientBuilder httpClientBuilder)
Allows to customize theCloseableHttpAsyncClientbeing created and used by theRestClient. Commonly used to customize the defaultCredentialsProviderfor authentication for communication through TLS/SSL without losing any other useful default value that theRestClientBuilderinternally sets, like connection pooling.- Parameters:
httpClientBuilder- theHttpClientBuilderfor customizing the client instance.
-
-