Class JettyClientHttpRequestFactoryBuilder
java.lang.Object
org.springframework.boot.http.client.JettyClientHttpRequestFactoryBuilder
- All Implemented Interfaces:
ClientHttpRequestFactoryBuilder<JettyClientHttpRequestFactory>
Builder for
ClientHttpRequestFactoryBuilder.jetty()
.- Since:
- 3.4.0
- Author:
- Phillip Webb, Andy Wilkinson, Scott Frederick
-
Method Summary
Modifier and TypeMethodDescriptionbuild
(ClientHttpRequestFactorySettings settings) Build a fully configuredClientHttpRequestFactory
, applying the givensettings
if they are provided.protected JettyClientHttpRequestFactory
protected static <T> Consumer<T>
protected final List<Consumer<JettyClientHttpRequestFactory>>
protected final List<Consumer<JettyClientHttpRequestFactory>>
mergedCustomizers
(Collection<Consumer<JettyClientHttpRequestFactory>> customizers) protected final List<Consumer<JettyClientHttpRequestFactory>>
mergedCustomizers
(Consumer<JettyClientHttpRequestFactory> customizer) withClientConnectorCustomizerCustomizer
(Consumer<org.eclipse.jetty.io.ClientConnector> clientConnectorCustomizerCustomizer) Return a newJettyClientHttpRequestFactoryBuilder
that applies additional customization to the underlyingClientConnector
.withCustomizer
(Consumer<JettyClientHttpRequestFactory> customizer) Return a newClientHttpRequestFactoryBuilder
that applies the given customizer to theClientHttpRequestFactory
after it has been built.withCustomizers
(Collection<Consumer<JettyClientHttpRequestFactory>> customizers) Return a newClientHttpRequestFactoryBuilder
that applies the given customizers to theClientHttpRequestFactory
after it has been built.withHttpClientCustomizer
(Consumer<org.eclipse.jetty.client.HttpClient> httpClientCustomizer) Return a newJettyClientHttpRequestFactoryBuilder
that applies additional customization to the underlyingHttpClient
.withHttpClientTransportCustomizer
(Consumer<org.eclipse.jetty.client.HttpClientTransport> httpClientTransportCustomizer) Return a newJettyClientHttpRequestFactoryBuilder
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.ClientHttpRequestFactoryBuilder
build
-
Method Details
-
withCustomizer
public JettyClientHttpRequestFactoryBuilder withCustomizer(Consumer<JettyClientHttpRequestFactory> customizer) Description copied from interface:ClientHttpRequestFactoryBuilder
Return a newClientHttpRequestFactoryBuilder
that applies the given customizer to theClientHttpRequestFactory
after it has been built.- Parameters:
customizer
- the customizers to apply- Returns:
- a new
ClientHttpRequestFactoryBuilder
instance
-
withCustomizers
public JettyClientHttpRequestFactoryBuilder withCustomizers(Collection<Consumer<JettyClientHttpRequestFactory>> customizers) Description copied from interface:ClientHttpRequestFactoryBuilder
Return a newClientHttpRequestFactoryBuilder
that applies the given customizers to theClientHttpRequestFactory
after it has been built.- Parameters:
customizers
- the customizers to apply- Returns:
- a new
ClientHttpRequestFactoryBuilder
instance
-
withHttpClientCustomizer
public JettyClientHttpRequestFactoryBuilder withHttpClientCustomizer(Consumer<org.eclipse.jetty.client.HttpClient> httpClientCustomizer) Return a newJettyClientHttpRequestFactoryBuilder
that applies additional customization to the underlyingHttpClient
.- Parameters:
httpClientCustomizer
- the customizer to apply- Returns:
- a new
JettyClientHttpRequestFactoryBuilder
instance
-
withHttpClientTransportCustomizer
public JettyClientHttpRequestFactoryBuilder withHttpClientTransportCustomizer(Consumer<org.eclipse.jetty.client.HttpClientTransport> httpClientTransportCustomizer) Return a newJettyClientHttpRequestFactoryBuilder
that applies additional customization to the underlyingHttpClientTransport
.- Parameters:
httpClientTransportCustomizer
- the customizer to apply- Returns:
- a new
JettyClientHttpRequestFactoryBuilder
instance
-
withClientConnectorCustomizerCustomizer
public JettyClientHttpRequestFactoryBuilder withClientConnectorCustomizerCustomizer(Consumer<org.eclipse.jetty.io.ClientConnector> clientConnectorCustomizerCustomizer) Return a newJettyClientHttpRequestFactoryBuilder
that applies additional customization to the underlyingClientConnector
.- Parameters:
clientConnectorCustomizerCustomizer
- the customizer to apply- Returns:
- a new
JettyClientHttpRequestFactoryBuilder
instance
-
createClientHttpRequestFactory
protected JettyClientHttpRequestFactory createClientHttpRequestFactory(ClientHttpRequestFactorySettings settings) -
emptyCustomizer
-
getCustomizers
-
mergedCustomizers
protected final List<Consumer<JettyClientHttpRequestFactory>> mergedCustomizers(Consumer<JettyClientHttpRequestFactory> customizer) -
mergedCustomizers
protected final List<Consumer<JettyClientHttpRequestFactory>> mergedCustomizers(Collection<Consumer<JettyClientHttpRequestFactory>> customizers) -
build
Description copied from interface:ClientHttpRequestFactoryBuilder
Build a fully configuredClientHttpRequestFactory
, applying the givensettings
if they are provided.- Specified by:
build
in interfaceClientHttpRequestFactoryBuilder<T extends ClientHttpRequestFactory>
- Parameters:
settings
- the settings to apply ornull
- Returns:
- a fully configured
ClientHttpRequestFactory
.
-