Uses of Record Class
org.springframework.boot.http.client.HttpClientSettings
Packages that use HttpClientSettings
Package
Description
Client-side HTTP support classes.
Auto-configuration for client-side HTTP.
Client-side reactive HTTP support classes.
Web client utilities.
Test support classes that use
RestClient and
RestTemplate.Web Services client utilities.
-
Uses of HttpClientSettings in org.springframework.boot.http.client
Methods in org.springframework.boot.http.client that return HttpClientSettingsModifier and TypeMethodDescriptionstatic HttpClientSettingsHttpClientSettings.defaults()Use defaults settings, which can differ depending on the implementation.static HttpClientSettingsHttpClientSettings.ofSslBundle(@Nullable SslBundle sslBundle) Return a newHttpClientSettingsusing defaults for all settings other than the provided SSL bundle.HttpClientSettings.orElse(@Nullable HttpClientSettings other) Return a newHttpClientSettingsinstance using values from this instance when they are present, or otherwise using values fromother.HttpClientSettings.withConnectTimeout(@Nullable Duration connectTimeout) Return a newHttpClientSettingsinstance with an updated connect timeout setting.HttpClientSettings.withReadTimeout(@Nullable Duration readTimeout) Return a newHttpClientSettingsinstance with an updated read timeout setting.HttpClientSettings.withRedirects(@Nullable HttpRedirects redirects) Return a newHttpClientSettingsinstance with an updated redirect setting.HttpClientSettings.withSslBundle(@Nullable SslBundle sslBundle) Return a newHttpClientSettingsinstance with an updated SSL bundle setting.HttpClientSettings.withTimeouts(@Nullable Duration connectTimeout, @Nullable Duration readTimeout) Return a newHttpClientSettingsinstance with an updated connect and read timeout setting.Methods in org.springframework.boot.http.client with parameters of type HttpClientSettingsModifier and TypeMethodDescriptionClientHttpRequestFactoryBuilder.build(@Nullable HttpClientSettings settings) Build a fully configuredClientHttpRequestFactory, applying the givensettingsif they are provided.org.apache.hc.client5.http.impl.async.CloseableHttpAsyncClientHttpComponentsHttpAsyncClientBuilder.build(@Nullable HttpClientSettings settings) Build a newHttpAsyncClientinstance with the given settings applied.org.apache.hc.client5.http.impl.classic.CloseableHttpClientHttpComponentsHttpClientBuilder.build(@Nullable HttpClientSettings settings) Build a newHttpClientinstance with the given settings applied.JdkHttpClientBuilder.build(@Nullable HttpClientSettings settings) Build a newHttpClientinstance with the given settings applied.org.eclipse.jetty.client.HttpClientJettyHttpClientBuilder.build(@Nullable HttpClientSettings settings) Build a newHttpClientinstance with the given settings applied.reactor.netty.http.client.HttpClientReactorHttpClientBuilder.build(@Nullable HttpClientSettings settings) Build a newHttpClientinstance with the given settings applied.protected HttpComponentsClientHttpRequestFactoryHttpComponentsClientHttpRequestFactoryBuilder.createClientHttpRequestFactory(HttpClientSettings settings) protected JdkClientHttpRequestFactoryJdkClientHttpRequestFactoryBuilder.createClientHttpRequestFactory(HttpClientSettings settings) protected JettyClientHttpRequestFactoryJettyClientHttpRequestFactoryBuilder.createClientHttpRequestFactory(HttpClientSettings settings) protected ReactorClientHttpRequestFactoryReactorClientHttpRequestFactoryBuilder.createClientHttpRequestFactory(HttpClientSettings settings) protected SimpleClientHttpRequestFactorySimpleClientHttpRequestFactoryBuilder.createClientHttpRequestFactory(HttpClientSettings settings) HttpClientSettings.orElse(@Nullable HttpClientSettings other) Return a newHttpClientSettingsinstance using values from this instance when they are present, or otherwise using values fromother. -
Uses of HttpClientSettings in org.springframework.boot.http.client.autoconfigure
Methods in org.springframework.boot.http.client.autoconfigure that return HttpClientSettingsModifier and TypeMethodDescriptionHttpClientSettingsPropertyMapper.map(@Nullable HttpClientSettingsProperties properties) Constructors in org.springframework.boot.http.client.autoconfigure with parameters of type HttpClientSettingsModifierConstructorDescriptionHttpClientSettingsPropertyMapper(@Nullable SslBundles sslBundles, @Nullable HttpClientSettings settings) -
Uses of HttpClientSettings in org.springframework.boot.http.client.reactive
Methods in org.springframework.boot.http.client.reactive with parameters of type HttpClientSettingsModifier and TypeMethodDescriptionClientHttpConnectorBuilder.build(@Nullable HttpClientSettings settings) Build a fully configuredClientHttpConnector, applying the givensettingsif they are provided.protected HttpComponentsClientHttpConnectorHttpComponentsClientHttpConnectorBuilder.createClientHttpConnector(HttpClientSettings settings) protected JdkClientHttpConnectorJdkClientHttpConnectorBuilder.createClientHttpConnector(HttpClientSettings settings) protected JettyClientHttpConnectorJettyClientHttpConnectorBuilder.createClientHttpConnector(HttpClientSettings settings) protected ReactorClientHttpConnectorReactorClientHttpConnectorBuilder.createClientHttpConnector(HttpClientSettings settings) -
Uses of HttpClientSettings in org.springframework.boot.restclient
Methods in org.springframework.boot.restclient with parameters of type HttpClientSettingsModifier and TypeMethodDescriptionRestTemplateBuilder.clientSettings(HttpClientSettings clientSettings) Sets theHttpClientSettings.Method parameters in org.springframework.boot.restclient with type arguments of type HttpClientSettingsModifier and TypeMethodDescriptionRestTemplateBuilder.clientSettings(UnaryOperator<HttpClientSettings> clientSettingsCustomizer) Update theHttpClientSettingsusing the given customizer. -
Uses of HttpClientSettings in org.springframework.boot.resttestclient
Methods in org.springframework.boot.resttestclient with parameters of type HttpClientSettingsModifier and TypeMethodDescriptionTestRestTemplate.withClientSettings(HttpClientSettings clientSettings) Creates a newTestRestTemplatewith the same configuration as this one, except that it will apply the givenHttpClientSettings.Method parameters in org.springframework.boot.resttestclient with type arguments of type HttpClientSettingsModifier and TypeMethodDescriptionTestRestTemplate.withClientSettings(UnaryOperator<HttpClientSettings> clientSettingsCustomizer) Creates a newTestRestTemplatewith the same configuration as this one, except that it will customize theHttpClientSettings. -
Uses of HttpClientSettings in org.springframework.boot.webservices.client
Methods in org.springframework.boot.webservices.client with parameters of type HttpClientSettingsModifier and TypeMethodDescriptionWebServiceMessageSenderFactory.http(ClientHttpRequestFactoryBuilder<?> requestFactoryBuilder, @Nullable HttpClientSettings clientSettings) Returns a factory that will create aClientHttpRequestMessageSenderbacked by aClientHttpRequestFactorycreated from the givenClientHttpRequestFactoryBuilder.WebServiceMessageSenderFactory.http(HttpClientSettings clientSettings) Returns a factory that will create aClientHttpRequestMessageSenderbacked by a detectedClientHttpRequestFactory.