Class JettyClientHttpConnectorBuilder
java.lang.Object
org.springframework.boot.http.client.reactive.JettyClientHttpConnectorBuilder
- All Implemented Interfaces:
ClientHttpConnectorBuilder<JettyClientHttpConnector>
Builder for
ClientHttpConnectorBuilder.jetty()
.- Since:
- 3.5.0
- Author:
- Phillip Webb
-
Method Summary
Modifier and TypeMethodDescriptionprotected final @Nullable HttpClientSettings
asHttpClientSettings
(@Nullable ClientHttpConnectorSettings settings) final JettyClientHttpConnector
build
(@Nullable ClientHttpConnectorSettings settings) Build a fully configuredClientHttpConnector
, applying the givensettings
if they are provided.protected JettyClientHttpConnector
protected final List
<Consumer<JettyClientHttpConnector>> protected final List
<Consumer<JettyClientHttpConnector>> mergedCustomizers
(Collection<Consumer<JettyClientHttpConnector>> customizers) protected final List
<Consumer<JettyClientHttpConnector>> mergedCustomizers
(Consumer<JettyClientHttpConnector> customizer) with
(UnaryOperator<JettyClientHttpConnectorBuilder> customizer) Return a newJettyClientHttpConnectorBuilder
that applies the given customizer.withClientConnectorCustomizerCustomizer
(Consumer<org.eclipse.jetty.io.ClientConnector> clientConnectorCustomizerCustomizer) Return a newJettyClientHttpConnectorBuilder
that applies additional customization to the underlyingClientConnector
.withCustomizer
(Consumer<JettyClientHttpConnector> customizer) Return a newClientHttpConnectorBuilder
that applies the given customizer to theClientHttpConnector
after it has been built.withCustomizers
(Collection<Consumer<JettyClientHttpConnector>> customizers) Return a newClientHttpConnectorBuilder
that applies the given customizers to theClientHttpConnector
after it has been built.withHttpClientCustomizer
(Consumer<org.eclipse.jetty.client.HttpClient> httpClientCustomizer) Return a newJettyClientHttpConnectorBuilder
that applies additional customization to the underlyingHttpClient
.withHttpClientTransportCustomizer
(Consumer<org.eclipse.jetty.client.HttpClientTransport> httpClientTransportCustomizer) Return a newJettyClientHttpConnectorBuilder
that applies additional customization to the underlyingHttpClientTransport
.withHttpClientTransportFactory
(Function<org.eclipse.jetty.io.ClientConnector, org.eclipse.jetty.client.HttpClientTransport> httpClientTransportFactory) Return a newJettyClientHttpConnectorBuilder
that uses the given factory to create theHttpClientTransport
.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
public JettyClientHttpConnectorBuilder withCustomizer(Consumer<JettyClientHttpConnector> customizer) 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 JettyClientHttpConnectorBuilder withCustomizers(Collection<Consumer<JettyClientHttpConnector>> 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
-
withHttpClientTransportFactory
public JettyClientHttpConnectorBuilder withHttpClientTransportFactory(Function<org.eclipse.jetty.io.ClientConnector, org.eclipse.jetty.client.HttpClientTransport> httpClientTransportFactory) Return a newJettyClientHttpConnectorBuilder
that uses the given factory to create theHttpClientTransport
.- Parameters:
httpClientTransportFactory
- theHttpClientTransport
factory to use- Returns:
- a new
JettyClientHttpConnectorBuilder
instance - Since:
- 4.0.0
-
withHttpClientCustomizer
public JettyClientHttpConnectorBuilder withHttpClientCustomizer(Consumer<org.eclipse.jetty.client.HttpClient> httpClientCustomizer) Return a newJettyClientHttpConnectorBuilder
that applies additional customization to the underlyingHttpClient
.- Parameters:
httpClientCustomizer
- the customizer to apply- Returns:
- a new
JettyClientHttpConnectorBuilder
instance
-
withHttpClientTransportCustomizer
public JettyClientHttpConnectorBuilder withHttpClientTransportCustomizer(Consumer<org.eclipse.jetty.client.HttpClientTransport> httpClientTransportCustomizer) Return a newJettyClientHttpConnectorBuilder
that applies additional customization to the underlyingHttpClientTransport
.- Parameters:
httpClientTransportCustomizer
- the customizer to apply- Returns:
- a new
JettyClientHttpConnectorBuilder
instance
-
withClientConnectorCustomizerCustomizer
public JettyClientHttpConnectorBuilder withClientConnectorCustomizerCustomizer(Consumer<org.eclipse.jetty.io.ClientConnector> clientConnectorCustomizerCustomizer) Return a newJettyClientHttpConnectorBuilder
that applies additional customization to the underlyingClientConnector
.- Parameters:
clientConnectorCustomizerCustomizer
- the customizer to apply- Returns:
- a new
JettyClientHttpConnectorBuilder
instance
-
with
public JettyClientHttpConnectorBuilder with(UnaryOperator<JettyClientHttpConnectorBuilder> customizer) Return a newJettyClientHttpConnectorBuilder
that applies the given customizer. This can be useful for applying pre-packaged customizations.- Parameters:
customizer
- the customizer to apply- Returns:
- a new
JettyClientHttpConnectorBuilder
- Since:
- 4.0.0
-
createClientHttpConnector
-
getCustomizers
-
mergedCustomizers
protected final List<Consumer<JettyClientHttpConnector>> mergedCustomizers(Consumer<JettyClientHttpConnector> customizer) -
mergedCustomizers
protected final List<Consumer<JettyClientHttpConnector>> mergedCustomizers(Collection<Consumer<JettyClientHttpConnector>> 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
@Contract("!null -> !null") protected final @Nullable HttpClientSettings asHttpClientSettings(@Nullable ClientHttpConnectorSettings settings)
-