类 HttpComponentsClientHttpConnectorBuilder
java.lang.Object
org.springframework.boot.http.client.reactive.HttpComponentsClientHttpConnectorBuilder
Builder for
ClientHttpConnectorBuilder.httpComponents().- 从以下版本开始:
- 3.5.0
- 作者:
- Phillip Webb
-
方法概要
修饰符和类型方法说明protected final HttpClientSettingsbuild(ClientHttpConnectorSettings settings) Build a fully configuredClientHttpConnector, applying the givensettingsif they are provided.protected HttpComponentsClientHttpConnectorprotected 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 newHttpComponentsClientHttpConnectorBuilderthat applies additional customization to the underlyingConnectionConfig.Builder.withConnectionManagerCustomizer(Consumer<org.apache.hc.client5.http.impl.nio.PoolingAsyncClientConnectionManagerBuilder> connectionManagerCustomizer) Return a newHttpComponentsClientHttpConnectorBuilderthat applies additional customization to the underlyingPoolingAsyncClientConnectionManagerBuilder.withDefaultRequestConfigCustomizer(Consumer<org.apache.hc.client5.http.config.RequestConfig.Builder> defaultRequestConfigCustomizer) Return a newHttpComponentsClientHttpConnectorBuilderthat applies additional customization to the underlyingRequestConfig.Builderused for default requests.withHttpClientCustomizer(Consumer<org.apache.hc.client5.http.impl.async.HttpAsyncClientBuilder> httpClientCustomizer) Return a newHttpComponentsClientHttpConnectorBuilderthat applies additional customization to the underlyingHttpAsyncClientBuilder.withTlsSocketStrategyFactory(Function<SslBundle, org.apache.hc.core5.http.nio.ssl.TlsStrategy> tlsStrategyFactory) Return a newHttpComponentsClientHttpConnectorBuilderwith a replacementTlsStrategyfactory.从类继承的方法 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 newHttpComponentsClientHttpConnectorBuilderthat applies additional customization to the underlyingHttpAsyncClientBuilder.- 参数:
httpClientCustomizer- the customizer to apply- 返回:
- a new
HttpComponentsHttpAsyncClientBuilderinstance
-
withConnectionManagerCustomizer
public HttpComponentsClientHttpConnectorBuilder withConnectionManagerCustomizer(Consumer<org.apache.hc.client5.http.impl.nio.PoolingAsyncClientConnectionManagerBuilder> connectionManagerCustomizer) Return a newHttpComponentsClientHttpConnectorBuilderthat applies additional customization to the underlyingPoolingAsyncClientConnectionManagerBuilder.- 参数:
connectionManagerCustomizer- the customizer to apply- 返回:
- a new
HttpComponentsClientHttpConnectorBuilderinstance
-
withConnectionConfigCustomizer
public HttpComponentsClientHttpConnectorBuilder withConnectionConfigCustomizer(Consumer<org.apache.hc.client5.http.config.ConnectionConfig.Builder> connectionConfigCustomizer) Return a newHttpComponentsClientHttpConnectorBuilderthat applies additional customization to the underlyingConnectionConfig.Builder.- 参数:
connectionConfigCustomizer- the customizer to apply- 返回:
- a new
HttpComponentsClientHttpConnectorBuilderinstance
-
withTlsSocketStrategyFactory
public HttpComponentsClientHttpConnectorBuilder withTlsSocketStrategyFactory(Function<SslBundle, org.apache.hc.core5.http.nio.ssl.TlsStrategy> tlsStrategyFactory) Return a newHttpComponentsClientHttpConnectorBuilderwith a replacementTlsStrategyfactory.- 参数:
tlsStrategyFactory- the new factory used to create aTlsStrategyfor a givenSslBundle- 返回:
- a new
HttpComponentsClientHttpConnectorBuilderinstance
-
withDefaultRequestConfigCustomizer
public HttpComponentsClientHttpConnectorBuilder withDefaultRequestConfigCustomizer(Consumer<org.apache.hc.client5.http.config.RequestConfig.Builder> defaultRequestConfigCustomizer) Return a newHttpComponentsClientHttpConnectorBuilderthat applies additional customization to the underlyingRequestConfig.Builderused for default requests.- 参数:
defaultRequestConfigCustomizer- the customizer to apply- 返回:
- a new
HttpComponentsClientHttpConnectorBuilderinstance
-
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
从接口复制的说明:ClientHttpConnectorBuilderBuild a fully configuredClientHttpConnector, applying the givensettingsif they are provided.- 指定者:
build在接口中ClientHttpConnectorBuilder<T extends ClientHttpConnector>- 参数:
settings- the settings to apply ornull- 返回:
- a fully configured
ClientHttpConnector.
-
asHttpClientSettings
-