Class ReactorClientHttpConnectorBuilder
java.lang.Object
org.springframework.boot.http.client.reactive.ReactorClientHttpConnectorBuilder
- All Implemented Interfaces:
ClientHttpConnectorBuilder<org.springframework.http.client.reactive.ReactorClientHttpConnector>
Builder for
ClientHttpConnectorBuilder.reactor().- Since:
- 3.5.0
-
Method Summary
Modifier and TypeMethodDescriptionprotected final HttpClientSettingsfinal org.springframework.http.client.reactive.ReactorClientHttpConnectorbuild(ClientHttpConnectorSettings settings) Build a fully configuredClientHttpConnector, applying the givensettingsif they are provided.protected org.springframework.http.client.reactive.ReactorClientHttpConnectormergedCustomizers(Collection<Consumer<org.springframework.http.client.reactive.ReactorClientHttpConnector>> customizers) mergedCustomizers(Consumer<org.springframework.http.client.reactive.ReactorClientHttpConnector> customizer) withCustomizer(Consumer<org.springframework.http.client.reactive.ReactorClientHttpConnector> customizer) Return a newClientHttpConnectorBuilderthat applies the given customizer to theClientHttpConnectorafter it has been built.withCustomizers(Collection<Consumer<org.springframework.http.client.reactive.ReactorClientHttpConnector>> customizers) Return a newClientHttpConnectorBuilderthat applies the given customizers to theClientHttpConnectorafter it has been built.withHttpClientCustomizer(UnaryOperator<reactor.netty.http.client.HttpClient> httpClientCustomizer) Return a newReactorClientHttpConnectorBuilderthat applies additional customization to the underlyingHttpClient.withHttpClientFactory(Supplier<reactor.netty.http.client.HttpClient> factory) Return a newReactorClientHttpConnectorBuilderthat uses the given factory to create the underlyingHttpClient.withReactorResourceFactory(org.springframework.http.client.ReactorResourceFactory reactorResourceFactory) Return a newReactorClientHttpConnectorBuilderthat uses the givenReactorResourceFactoryto create the underlyingHttpClient.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.boot.http.client.reactive.ClientHttpConnectorBuilder
build
-
Method Details
-
withCustomizer
public ReactorClientHttpConnectorBuilder withCustomizer(Consumer<org.springframework.http.client.reactive.ReactorClientHttpConnector> customizer) Description copied from interface:ClientHttpConnectorBuilderReturn a newClientHttpConnectorBuilderthat applies the given customizer to theClientHttpConnectorafter it has been built.- Parameters:
customizer- the customizers to apply- Returns:
- a new
ClientHttpConnectorBuilderinstance
-
withCustomizers
public ReactorClientHttpConnectorBuilder withCustomizers(Collection<Consumer<org.springframework.http.client.reactive.ReactorClientHttpConnector>> customizers) Description copied from interface:ClientHttpConnectorBuilderReturn a newClientHttpConnectorBuilderthat applies the given customizers to theClientHttpConnectorafter it has been built.- Parameters:
customizers- the customizers to apply- Returns:
- a new
ClientHttpConnectorBuilderinstance
-
withReactorResourceFactory
public ReactorClientHttpConnectorBuilder withReactorResourceFactory(org.springframework.http.client.ReactorResourceFactory reactorResourceFactory) Return a newReactorClientHttpConnectorBuilderthat uses the givenReactorResourceFactoryto create the underlyingHttpClient.- Parameters:
reactorResourceFactory- theReactorResourceFactoryto use- Returns:
- a new
ReactorClientHttpConnectorBuilderinstance
-
withHttpClientFactory
public ReactorClientHttpConnectorBuilder withHttpClientFactory(Supplier<reactor.netty.http.client.HttpClient> factory) Return a newReactorClientHttpConnectorBuilderthat uses the given factory to create the underlyingHttpClient.- Parameters:
factory- the factory to use- Returns:
- a new
ReactorClientHttpConnectorBuilderinstance
-
withHttpClientCustomizer
public ReactorClientHttpConnectorBuilder withHttpClientCustomizer(UnaryOperator<reactor.netty.http.client.HttpClient> httpClientCustomizer) Return a newReactorClientHttpConnectorBuilderthat applies additional customization to the underlyingHttpClient.- Parameters:
httpClientCustomizer- the customizer to apply- Returns:
- a new
ReactorClientHttpConnectorBuilderinstance
-
createClientHttpConnector
protected org.springframework.http.client.reactive.ReactorClientHttpConnector createClientHttpConnector(ClientHttpConnectorSettings settings) -
getCustomizers
-
mergedCustomizers
-
mergedCustomizers
protected final List<Consumer<org.springframework.http.client.reactive.ReactorClientHttpConnector>> mergedCustomizers(Collection<Consumer<org.springframework.http.client.reactive.ReactorClientHttpConnector>> customizers) -
build
public final org.springframework.http.client.reactive.ReactorClientHttpConnector build(ClientHttpConnectorSettings settings) Description copied from interface:ClientHttpConnectorBuilderBuild a fully configuredClientHttpConnector, applying the givensettingsif they are provided.- Specified by:
buildin interfaceClientHttpConnectorBuilder<T extends org.springframework.http.client.reactive.ClientHttpConnector>- Parameters:
settings- the settings to apply ornull- Returns:
- a fully configured
ClientHttpConnector.
-
asHttpClientSettings
-