Class JdkClientHttpConnectorBuilder
java.lang.Object
org.springframework.boot.http.client.reactive.JdkClientHttpConnectorBuilder
- All Implemented Interfaces:
ClientHttpConnectorBuilder<JdkClientHttpConnector>
Builder for
ClientHttpConnectorBuilder.jdk()
.- Since:
- 3.5.0
- Author:
- Phillip Webb
-
Method Summary
Modifier and TypeMethodDescriptionprotected final HttpClientSettings
final JdkClientHttpConnector
build
(ClientHttpConnectorSettings settings) Build a fully configuredClientHttpConnector
, applying the givensettings
if they are provided.protected JdkClientHttpConnector
protected final List<Consumer<JdkClientHttpConnector>>
protected final List<Consumer<JdkClientHttpConnector>>
mergedCustomizers
(Collection<Consumer<JdkClientHttpConnector>> customizers) protected final List<Consumer<JdkClientHttpConnector>>
mergedCustomizers
(Consumer<JdkClientHttpConnector> customizer) withCustomizer
(Consumer<JdkClientHttpConnector> customizer) Return a newClientHttpConnectorBuilder
that applies the given customizer to theClientHttpConnector
after it has been built.withCustomizers
(Collection<Consumer<JdkClientHttpConnector>> customizers) Return a newClientHttpConnectorBuilder
that applies the given customizers to theClientHttpConnector
after it has been built.withHttpClientCustomizer
(Consumer<HttpClient.Builder> httpClientCustomizer) Return a newJdkClientHttpConnectorBuilder
that applies additional customization to the underlyingHttpClient.Builder
.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.reactive.ClientHttpConnectorBuilder
build
-
Method Details
-
withCustomizer
Description copied from interface:ClientHttpConnectorBuilder
Return a newClientHttpConnectorBuilder
that applies the given customizer to theClientHttpConnector
after it has been built.- Parameters:
customizer
- the customizers to apply- Returns:
- a new
ClientHttpConnectorBuilder
instance
-
withCustomizers
public JdkClientHttpConnectorBuilder withCustomizers(Collection<Consumer<JdkClientHttpConnector>> customizers) Description copied from interface:ClientHttpConnectorBuilder
Return a newClientHttpConnectorBuilder
that applies the given customizers to theClientHttpConnector
after it has been built.- Parameters:
customizers
- the customizers to apply- Returns:
- a new
ClientHttpConnectorBuilder
instance
-
withHttpClientCustomizer
public JdkClientHttpConnectorBuilder withHttpClientCustomizer(Consumer<HttpClient.Builder> httpClientCustomizer) Return a newJdkClientHttpConnectorBuilder
that applies additional customization to the underlyingHttpClient.Builder
.- Parameters:
httpClientCustomizer
- the customizer to apply- Returns:
- a new
JdkClientHttpConnectorBuilder
instance
-
createClientHttpConnector
-
getCustomizers
-
mergedCustomizers
protected final List<Consumer<JdkClientHttpConnector>> mergedCustomizers(Consumer<JdkClientHttpConnector> customizer) -
mergedCustomizers
protected final List<Consumer<JdkClientHttpConnector>> mergedCustomizers(Collection<Consumer<JdkClientHttpConnector>> customizers) -
build
Description copied from interface:ClientHttpConnectorBuilder
Build a fully configuredClientHttpConnector
, applying the givensettings
if they are provided.- Specified by:
build
in interfaceClientHttpConnectorBuilder<T extends ClientHttpConnector>
- Parameters:
settings
- the settings to apply ornull
- Returns:
- a fully configured
ClientHttpConnector
.
-
asHttpClientSettings
-