HttpComponentsClientHttpRequestFactoryBuilder

Builder for httpComponents.

Author

Phillip Webb

Andy Wilkinson

Scott Frederick

Since

3.4.0

Functions

Link copied to clipboard
Build a fully configured ClientHttpRequestFactory, applying the given settings if they are provided.
open fun build(): T
Build a default configured ClientHttpRequestFactory.
Link copied to clipboard
Detect the most suitable ClientHttpRequestFactoryBuilder based on the classpath.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun <T : ClientHttpRequestFactory?> of(requestFactoryType: Class<T>): ClientHttpRequestFactoryBuilder<T>
Return a new ClientHttpRequestFactoryBuilder for the given requestFactoryType.
open fun <T : ClientHttpRequestFactory?> of(requestFactorySupplier: Supplier<T>): ClientHttpRequestFactoryBuilder<T>
Return a new ClientHttpRequestFactoryBuilder from the given supplier, using reflection to ultimately apply the ClientHttpRequestFactorySettings.
Link copied to clipboard
Link copied to clipboard
open fun withConnectionManagerCustomizer(connectionManagerCustomizer: Consumer<PoolingHttpClientConnectionManagerBuilder>): HttpComponentsClientHttpRequestFactoryBuilder
Return a new HttpComponentsClientHttpRequestFactoryBuilder that applies additional customization to the underlying PoolingHttpClientConnectionManagerBuilder.
Link copied to clipboard
Return a new ClientHttpRequestFactoryBuilder that applies the given customizer to the ClientHttpRequestFactory after it has been built.
Link copied to clipboard
Link copied to clipboard
open fun withDefaultRequestConfigCustomizer(defaultRequestConfigCustomizer: Consumer<RequestConfig.Builder>): HttpComponentsClientHttpRequestFactoryBuilder
Return a new HttpComponentsClientHttpRequestFactoryBuilder that applies additional customization to the underlying org.apache.hc.client5.http.config.RequestConfig.Builder used for default requests.
Link copied to clipboard
open fun withHttpClientCustomizer(httpClientCustomizer: Consumer<HttpClientBuilder>): HttpComponentsClientHttpRequestFactoryBuilder
Return a new HttpComponentsClientHttpRequestFactoryBuilder that applies additional customization to the underlying HttpClientBuilder.
Link copied to clipboard
open fun withSocketConfigCustomizer(socketConfigCustomizer: Consumer<SocketConfig.Builder>): HttpComponentsClientHttpRequestFactoryBuilder
Return a new HttpComponentsClientHttpRequestFactoryBuilder that applies additional customization to the underlying org.apache.hc.core5.http.io.SocketConfig.Builder.
Link copied to clipboard
open fun withTlsSocketStrategyFactory(tlsSocketStrategyFactory: (SslBundle) -> TlsSocketStrategy): HttpComponentsClientHttpRequestFactoryBuilder
Return a new HttpComponentsClientHttpRequestFactoryBuilder with a replacement TlsSocketStrategy factory.