Class ReactorClientHttpRequestFactoryBuilder
java.lang.Object
org.springframework.boot.http.client.ReactorClientHttpRequestFactoryBuilder
- All Implemented Interfaces:
ClientHttpRequestFactoryBuilder<org.springframework.http.client.ReactorClientHttpRequestFactory>
Builder for
ClientHttpRequestFactoryBuilder.reactor()
.- Since:
- 3.4.0
-
Method Summary
Modifier and TypeMethodDescriptionfinal org.springframework.http.client.ReactorClientHttpRequestFactory
build
(ClientHttpRequestFactorySettings settings) Build a fully configuredClientHttpRequestFactory
, applying the givensettings
if they are provided.protected org.springframework.http.client.ReactorClientHttpRequestFactory
protected static <T> Consumer<T>
mergedCustomizers
(Collection<Consumer<org.springframework.http.client.ReactorClientHttpRequestFactory>> customizers) mergedCustomizers
(Consumer<org.springframework.http.client.ReactorClientHttpRequestFactory> customizer) withCustomizer
(Consumer<org.springframework.http.client.ReactorClientHttpRequestFactory> customizer) Return a newClientHttpRequestFactoryBuilder
that applies the given customizer to theClientHttpRequestFactory
after it has been built.withCustomizers
(Collection<Consumer<org.springframework.http.client.ReactorClientHttpRequestFactory>> customizers) Return a newClientHttpRequestFactoryBuilder
that applies the given customizers to theClientHttpRequestFactory
after it has been built.withHttpClientCustomizer
(UnaryOperator<reactor.netty.http.client.HttpClient> httpClientCustomizer) Return a newReactorClientHttpRequestFactoryBuilder
that applies additional customization to the underlyingHttpClient
.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.springframework.boot.http.client.ClientHttpRequestFactoryBuilder
build
-
Method Details
-
withCustomizer
public ReactorClientHttpRequestFactoryBuilder withCustomizer(Consumer<org.springframework.http.client.ReactorClientHttpRequestFactory> customizer) Description copied from interface:ClientHttpRequestFactoryBuilder
Return a newClientHttpRequestFactoryBuilder
that applies the given customizer to theClientHttpRequestFactory
after it has been built.- Parameters:
customizer
- the customizers to apply- Returns:
- a new
ClientHttpRequestFactoryBuilder
instance
-
withCustomizers
public ReactorClientHttpRequestFactoryBuilder withCustomizers(Collection<Consumer<org.springframework.http.client.ReactorClientHttpRequestFactory>> customizers) Description copied from interface:ClientHttpRequestFactoryBuilder
Return a newClientHttpRequestFactoryBuilder
that applies the given customizers to theClientHttpRequestFactory
after it has been built.- Parameters:
customizers
- the customizers to apply- Returns:
- a new
ClientHttpRequestFactoryBuilder
instance
-
withHttpClientCustomizer
public ReactorClientHttpRequestFactoryBuilder withHttpClientCustomizer(UnaryOperator<reactor.netty.http.client.HttpClient> httpClientCustomizer) Return a newReactorClientHttpRequestFactoryBuilder
that applies additional customization to the underlyingHttpClient
.- Parameters:
httpClientCustomizer
- the customizer to apply- Returns:
- a new
ReactorClientHttpRequestFactoryBuilder
instance
-
createClientHttpRequestFactory
protected org.springframework.http.client.ReactorClientHttpRequestFactory createClientHttpRequestFactory(ClientHttpRequestFactorySettings settings) -
emptyCustomizer
-
getCustomizers
-
mergedCustomizers
-
mergedCustomizers
protected final List<Consumer<org.springframework.http.client.ReactorClientHttpRequestFactory>> mergedCustomizers(Collection<Consumer<org.springframework.http.client.ReactorClientHttpRequestFactory>> customizers) -
build
public final org.springframework.http.client.ReactorClientHttpRequestFactory build(ClientHttpRequestFactorySettings settings) Description copied from interface:ClientHttpRequestFactoryBuilder
Build a fully configuredClientHttpRequestFactory
, applying the givensettings
if they are provided.- Specified by:
build
in interfaceClientHttpRequestFactoryBuilder<T extends org.springframework.http.client.ClientHttpRequestFactory>
- Parameters:
settings
- the settings to apply ornull
- Returns:
- a fully configured
ClientHttpRequestFactory
.
-