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 TypeMethodDescriptionfinal JettyClientHttpConnectorbuild(@Nullable HttpClientSettings settings) Build a fully configuredClientHttpConnector, applying the givensettingsif they are provided.protected JettyClientHttpConnectorcreateClientHttpConnector(HttpClientSettings settings) 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 newJettyClientHttpConnectorBuilderthat applies the given customizer.withClientConnectorCustomizerCustomizer(Consumer<org.eclipse.jetty.io.ClientConnector> clientConnectorCustomizerCustomizer) Return a newJettyClientHttpConnectorBuilderthat applies additional customization to the underlyingClientConnector.withCustomizer(Consumer<JettyClientHttpConnector> customizer) Return a newClientHttpConnectorBuilderthat applies the given customizer to theClientHttpConnectorafter it has been built.withCustomizers(Collection<Consumer<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<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<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
-
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:ClientHttpConnectorBuilderBuild a fully configuredClientHttpConnector, applying the givensettingsif they are provided.- Specified by:
buildin interfaceClientHttpConnectorBuilder<T extends ClientHttpConnector>- Parameters:
settings- the settings to apply ornull- Returns:
- a fully configured
ClientHttpConnector.
-