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 HttpClientSettings
final JettyClientHttpConnector
build
(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) 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
.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
-
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
-
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
-