ClientHttpRequestFactoryBuilder
Interface used to build a fully configured ClientHttpRequestFactory. Builders for Apache HTTP Components, Jetty, Reactor, JDK and simple client can be obtained using the factory methods on this interface. The of and of methods may be used to instantiate other ClientHttpRequestFactory instances using reflection.
Author
Phillip Webb
Since
3.4.0
Parameters
<T>
the ClientHttpRequestFactory type
Functions
Link copied to clipboard
Build a default configured ClientHttpRequestFactory.
Build a fully configured ClientHttpRequestFactory, applying the given
settings
if they are provided.Link copied to clipboard
Detect the most suitable ClientHttpRequestFactoryBuilder based on the classpath.
Link copied to clipboard
Return a HttpComponentsClientHttpRequestFactoryBuilder that can be used to build a HttpComponentsClientHttpRequestFactory.
Link copied to clipboard
Return a JdkClientHttpRequestFactoryBuilder that can be used to build a JdkClientHttpRequestFactory .
Link copied to clipboard
Return a JettyClientHttpRequestFactoryBuilder that can be used to build a JettyClientHttpRequestFactory.
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
Return a ReactorClientHttpRequestFactoryBuilder that can be used to build a ReactorClientHttpRequestFactory.
Link copied to clipboard
Return a SimpleClientHttpRequestFactoryBuilder that can be used to build a SimpleClientHttpRequestFactory .
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
Return a new ClientHttpRequestFactoryBuilder that applies the given customizers to the ClientHttpRequestFactory after it has been built.