Class JettyHttpClientBuilder
java.lang.Object
org.springframework.boot.http.client.JettyHttpClientBuilder
Builder that can be used to create a Jetty 
HttpClient.- Since:
- 3.5.0
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionorg.eclipse.jetty.client.HttpClientbuild(HttpClientSettings settings) Build a newHttpClientinstance with the given settings applied.withClientConnectorCustomizerCustomizer(Consumer<org.eclipse.jetty.io.ClientConnector> clientConnectorCustomizerCustomizer) Return a newJettyClientHttpRequestFactoryBuilderthat applies additional customization to the underlyingClientConnector.withCustomizer(Consumer<org.eclipse.jetty.client.HttpClient> customizer) Return a newJettyClientHttpRequestFactoryBuilderthat applies additional customization to the underlyingHttpClient.withHttpClientTransportCustomizer(Consumer<org.eclipse.jetty.client.HttpClientTransport> httpClientTransportCustomizer) Return a newJettyClientHttpRequestFactoryBuilderthat applies additional customization to the underlyingHttpClientTransport.
- 
Constructor Details- 
JettyHttpClientBuilderpublic JettyHttpClientBuilder()
 
- 
- 
Method Details- 
withCustomizerpublic JettyHttpClientBuilder withCustomizer(Consumer<org.eclipse.jetty.client.HttpClient> customizer) Return a newJettyClientHttpRequestFactoryBuilderthat applies additional customization to the underlyingHttpClient.- Parameters:
- customizer- the customizer to apply
- Returns:
- a new JettyClientHttpRequestFactoryBuilderinstance
 
- 
withHttpClientTransportCustomizerpublic JettyHttpClientBuilder withHttpClientTransportCustomizer(Consumer<org.eclipse.jetty.client.HttpClientTransport> httpClientTransportCustomizer) Return a newJettyClientHttpRequestFactoryBuilderthat applies additional customization to the underlyingHttpClientTransport.- Parameters:
- httpClientTransportCustomizer- the customizer to apply
- Returns:
- a new JettyClientHttpRequestFactoryBuilderinstance
 
- 
withClientConnectorCustomizerCustomizerpublic JettyHttpClientBuilder withClientConnectorCustomizerCustomizer(Consumer<org.eclipse.jetty.io.ClientConnector> clientConnectorCustomizerCustomizer) Return a newJettyClientHttpRequestFactoryBuilderthat applies additional customization to the underlyingClientConnector.- Parameters:
- clientConnectorCustomizerCustomizer- the customizer to apply
- Returns:
- a new JettyClientHttpRequestFactoryBuilderinstance
 
- 
buildBuild a newHttpClientinstance with the given settings applied.- Parameters:
- settings- the settings to apply
- Returns:
- a new HttpClientinstance
 
 
-