类 HttpComponentsClientHttpConnectorBuilder
java.lang.Object
org.springframework.boot.http.client.reactive.HttpComponentsClientHttpConnectorBuilder
Builder for
ClientHttpConnectorBuilder.httpComponents()
.- 从以下版本开始:
- 3.5.0
- 作者:
- Phillip Webb
-
方法概要
修饰符和类型方法说明protected final HttpClientSettings
build
(ClientHttpConnectorSettings settings) Build a fully configuredClientHttpConnector
, applying the givensettings
if they are provided.protected HttpComponentsClientHttpConnector
protected final List
<Consumer<HttpComponentsClientHttpConnector>> protected final List
<Consumer<HttpComponentsClientHttpConnector>> mergedCustomizers
(Collection<Consumer<HttpComponentsClientHttpConnector>> customizers) protected final List
<Consumer<HttpComponentsClientHttpConnector>> mergedCustomizers
(Consumer<HttpComponentsClientHttpConnector> customizer) withConnectionConfigCustomizer
(Consumer<org.apache.hc.client5.http.config.ConnectionConfig.Builder> connectionConfigCustomizer) Return a newHttpComponentsClientHttpConnectorBuilder
that applies additional customization to the underlyingConnectionConfig.Builder
.withConnectionManagerCustomizer
(Consumer<org.apache.hc.client5.http.impl.nio.PoolingAsyncClientConnectionManagerBuilder> connectionManagerCustomizer) Return a newHttpComponentsClientHttpConnectorBuilder
that applies additional customization to the underlyingPoolingAsyncClientConnectionManagerBuilder
.withDefaultRequestConfigCustomizer
(Consumer<org.apache.hc.client5.http.config.RequestConfig.Builder> defaultRequestConfigCustomizer) Return a newHttpComponentsClientHttpConnectorBuilder
that applies additional customization to the underlyingRequestConfig.Builder
used for default requests.withHttpClientCustomizer
(Consumer<org.apache.hc.client5.http.impl.async.HttpAsyncClientBuilder> httpClientCustomizer) Return a newHttpComponentsClientHttpConnectorBuilder
that applies additional customization to the underlyingHttpAsyncClientBuilder
.withTlsSocketStrategyFactory
(Function<SslBundle, org.apache.hc.core5.http.nio.ssl.TlsStrategy> tlsStrategyFactory) Return a newHttpComponentsClientHttpConnectorBuilder
with a replacementTlsStrategy
factory.从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
从接口继承的方法 org.springframework.boot.http.client.reactive.ClientHttpConnectorBuilder
build, withCustomizer, withCustomizers
-
方法详细资料
-
withHttpClientCustomizer
public HttpComponentsClientHttpConnectorBuilder withHttpClientCustomizer(Consumer<org.apache.hc.client5.http.impl.async.HttpAsyncClientBuilder> httpClientCustomizer) Return a newHttpComponentsClientHttpConnectorBuilder
that applies additional customization to the underlyingHttpAsyncClientBuilder
.- 参数:
httpClientCustomizer
- the customizer to apply- 返回:
- a new
HttpComponentsHttpAsyncClientBuilder
instance
-
withConnectionManagerCustomizer
public HttpComponentsClientHttpConnectorBuilder withConnectionManagerCustomizer(Consumer<org.apache.hc.client5.http.impl.nio.PoolingAsyncClientConnectionManagerBuilder> connectionManagerCustomizer) Return a newHttpComponentsClientHttpConnectorBuilder
that applies additional customization to the underlyingPoolingAsyncClientConnectionManagerBuilder
.- 参数:
connectionManagerCustomizer
- the customizer to apply- 返回:
- a new
HttpComponentsClientHttpConnectorBuilder
instance
-
withConnectionConfigCustomizer
public HttpComponentsClientHttpConnectorBuilder withConnectionConfigCustomizer(Consumer<org.apache.hc.client5.http.config.ConnectionConfig.Builder> connectionConfigCustomizer) Return a newHttpComponentsClientHttpConnectorBuilder
that applies additional customization to the underlyingConnectionConfig.Builder
.- 参数:
connectionConfigCustomizer
- the customizer to apply- 返回:
- a new
HttpComponentsClientHttpConnectorBuilder
instance
-
withTlsSocketStrategyFactory
public HttpComponentsClientHttpConnectorBuilder withTlsSocketStrategyFactory(Function<SslBundle, org.apache.hc.core5.http.nio.ssl.TlsStrategy> tlsStrategyFactory) Return a newHttpComponentsClientHttpConnectorBuilder
with a replacementTlsStrategy
factory.- 参数:
tlsStrategyFactory
- the new factory used to create aTlsStrategy
for a givenSslBundle
- 返回:
- a new
HttpComponentsClientHttpConnectorBuilder
instance
-
withDefaultRequestConfigCustomizer
public HttpComponentsClientHttpConnectorBuilder withDefaultRequestConfigCustomizer(Consumer<org.apache.hc.client5.http.config.RequestConfig.Builder> defaultRequestConfigCustomizer) Return a newHttpComponentsClientHttpConnectorBuilder
that applies additional customization to the underlyingRequestConfig.Builder
used for default requests.- 参数:
defaultRequestConfigCustomizer
- the customizer to apply- 返回:
- a new
HttpComponentsClientHttpConnectorBuilder
instance
-
createClientHttpConnector
protected HttpComponentsClientHttpConnector createClientHttpConnector(ClientHttpConnectorSettings settings) -
getCustomizers
-
mergedCustomizers
protected final List<Consumer<HttpComponentsClientHttpConnector>> mergedCustomizers(Consumer<HttpComponentsClientHttpConnector> customizer) -
mergedCustomizers
protected final List<Consumer<HttpComponentsClientHttpConnector>> mergedCustomizers(Collection<Consumer<HttpComponentsClientHttpConnector>> customizers) -
build
从接口复制的说明:ClientHttpConnectorBuilder
Build a fully configuredClientHttpConnector
, applying the givensettings
if they are provided.- 指定者:
build
在接口中ClientHttpConnectorBuilder<T extends ClientHttpConnector>
- 参数:
settings
- the settings to apply ornull
- 返回:
- a fully configured
ClientHttpConnector
.
-
asHttpClientSettings
-