Class JettyClientHttpConnectorBuilder
java.lang.Object
org.springframework.boot.http.client.reactive.JettyClientHttpConnectorBuilder
- All Implemented Interfaces:
ClientHttpConnectorBuilder<org.springframework.http.client.reactive.JettyClientHttpConnector>
Builder for
ClientHttpConnectorBuilder.jetty().- Since:
- 3.5.0
-
Method Summary
Modifier and TypeMethodDescriptionfinal org.springframework.http.client.reactive.JettyClientHttpConnectorbuild(@Nullable HttpClientSettings settings) Build a fully configuredClientHttpConnector, applying the givensettingsif they are provided.protected org.springframework.http.client.reactive.JettyClientHttpConnectorcreateClientHttpConnector(HttpClientSettings settings) mergedCustomizers(Collection<Consumer<org.springframework.http.client.reactive.JettyClientHttpConnector>> customizers) mergedCustomizers(Consumer<org.springframework.http.client.reactive.JettyClientHttpConnector> customizer) with(UnaryOperator<JettyClientHttpConnectorBuilder> customizer) Return a newJettyClientHttpConnectorBuilderthat applies the given customizer.withClientConnectorCustomizerCustomizer(Consumer<org.eclipse.jetty.io.ClientConnector> clientConnectorCustomizerCustomizer) Return a newJettyClientHttpConnectorBuilderthat applies additional customization to the underlyingClientConnector.withCustomizer(Consumer<org.springframework.http.client.reactive.JettyClientHttpConnector> customizer) Return a newClientHttpConnectorBuilderthat applies the given customizer to theClientHttpConnectorafter it has been built.withCustomizers(Collection<Consumer<org.springframework.http.client.reactive.JettyClientHttpConnector>> customizers) Return a newClientHttpConnectorBuilderthat applies the given customizers to theClientHttpConnectorafter it has been built.withHttpClientCustomizer(Consumer<org.eclipse.jetty.client.HttpClient> httpClientCustomizer) Return a newJettyClientHttpConnectorBuilderthat applies additional customization to the underlyingHttpClient.withHttpClientTransportCustomizer(Consumer<org.eclipse.jetty.client.HttpClientTransport> httpClientTransportCustomizer) Return a newJettyClientHttpConnectorBuilderthat applies additional customization to the underlyingHttpClientTransport.withHttpClientTransportFactory(Function<org.eclipse.jetty.io.ClientConnector, org.eclipse.jetty.client.HttpClientTransport> httpClientTransportFactory) Return a newJettyClientHttpConnectorBuilderthat uses the given factory to create theHttpClientTransport.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ClientHttpConnectorBuilder
build
-
Method Details
-
withCustomizer
public JettyClientHttpConnectorBuilder withCustomizer(Consumer<org.springframework.http.client.reactive.JettyClientHttpConnector> 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 JettyClientHttpConnectorBuilder withCustomizers(Collection<Consumer<org.springframework.http.client.reactive.JettyClientHttpConnector>> 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
-
withHttpClientTransportFactory
public JettyClientHttpConnectorBuilder withHttpClientTransportFactory(Function<org.eclipse.jetty.io.ClientConnector, org.eclipse.jetty.client.HttpClientTransport> httpClientTransportFactory) Return a newJettyClientHttpConnectorBuilderthat uses the given factory to create theHttpClientTransport.- Parameters:
httpClientTransportFactory- theHttpClientTransportfactory to use- Returns:
- a new
JettyClientHttpConnectorBuilderinstance - Since:
- 4.0.0
-
withHttpClientCustomizer
public JettyClientHttpConnectorBuilder withHttpClientCustomizer(Consumer<org.eclipse.jetty.client.HttpClient> httpClientCustomizer) Return a newJettyClientHttpConnectorBuilderthat applies additional customization to the underlyingHttpClient.- Parameters:
httpClientCustomizer- the customizer to apply- Returns:
- a new
JettyClientHttpConnectorBuilderinstance
-
withHttpClientTransportCustomizer
public JettyClientHttpConnectorBuilder withHttpClientTransportCustomizer(Consumer<org.eclipse.jetty.client.HttpClientTransport> httpClientTransportCustomizer) Return a newJettyClientHttpConnectorBuilderthat applies additional customization to the underlyingHttpClientTransport.- Parameters:
httpClientTransportCustomizer- the customizer to apply- Returns:
- a new
JettyClientHttpConnectorBuilderinstance
-
withClientConnectorCustomizerCustomizer
public JettyClientHttpConnectorBuilder withClientConnectorCustomizerCustomizer(Consumer<org.eclipse.jetty.io.ClientConnector> clientConnectorCustomizerCustomizer) Return a newJettyClientHttpConnectorBuilderthat applies additional customization to the underlyingClientConnector.- Parameters:
clientConnectorCustomizerCustomizer- the customizer to apply- Returns:
- a new
JettyClientHttpConnectorBuilderinstance
-
with
public JettyClientHttpConnectorBuilder with(UnaryOperator<JettyClientHttpConnectorBuilder> customizer) Return a newJettyClientHttpConnectorBuilderthat 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
protected org.springframework.http.client.reactive.JettyClientHttpConnector createClientHttpConnector(HttpClientSettings settings) -
getCustomizers
-
mergedCustomizers
-
mergedCustomizers
protected final List<Consumer<org.springframework.http.client.reactive.JettyClientHttpConnector>> mergedCustomizers(Collection<Consumer<org.springframework.http.client.reactive.JettyClientHttpConnector>> customizers) -
build
public final org.springframework.http.client.reactive.JettyClientHttpConnector build(@Nullable HttpClientSettings 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.
-