Uses of Class
org.springframework.boot.restclient.RestTemplateBuilder
Packages that use RestTemplateBuilder
Package
Description
Web client utilities.
Auto-configuration for RestClient.
Test support classes that use
RestClient and
RestTemplate.-
Uses of RestTemplateBuilder in org.springframework.boot.restclient
Methods in org.springframework.boot.restclient that return RestTemplateBuilderModifier and TypeMethodDescriptionRestTemplateBuilder.additionalCustomizers(Collection<? extends RestTemplateCustomizer> customizers) Deprecated, for removal: This API element is subject to removal in a future version.AddRestTemplateCustomizersthat should be applied to theRestTemplate.RestTemplateBuilder.additionalCustomizers(RestTemplateCustomizer... customizers) Deprecated, for removal: This API element is subject to removal in a future version.AddRestTemplateCustomizersthat should be applied to theRestTemplate.RestTemplateBuilder.additionalInterceptors(Collection<? extends ClientHttpRequestInterceptor> interceptors) Deprecated, for removal: This API element is subject to removal in a future version.Add additionalClientHttpRequestInterceptorsthat should be used with theRestTemplate.RestTemplateBuilder.additionalInterceptors(ClientHttpRequestInterceptor... interceptors) Deprecated, for removal: This API element is subject to removal in a future version.Add additionalClientHttpRequestInterceptorsthat should be used with theRestTemplate.RestTemplateBuilder.additionalMessageConverters(Collection<? extends HttpMessageConverter<?>> messageConverters) Deprecated, for removal: This API element is subject to removal in a future version.Add additionalHttpMessageConvertersthat should be used with theRestTemplate.RestTemplateBuilder.additionalMessageConverters(HttpMessageConverter<?>... messageConverters) Deprecated, for removal: This API element is subject to removal in a future version.Add additionalHttpMessageConvertersthat should be used with theRestTemplate.RestTemplateBuilder.additionalRequestCustomizers(Collection<? extends RestTemplateRequestCustomizer<?>> requestCustomizers) Deprecated, for removal: This API element is subject to removal in a future version.Add theRestTemplateRequestCustomizersthat should be applied to theClientHttpRequest.RestTemplateBuilder.additionalRequestCustomizers(RestTemplateRequestCustomizer<?>... requestCustomizers) Deprecated, for removal: This API element is subject to removal in a future version.Add theRestTemplateRequestCustomizersthat should be applied to theClientHttpRequest.Deprecated, for removal: This API element is subject to removal in a future version.Set a base URL template that should be applied to each request that starts with'/'.RestTemplateBuilder.basicAuthentication(String username, String password) Deprecated, for removal: This API element is subject to removal in a future version.Add HTTP Basic Authentication to requests with the given username/password pair, unless a custom Authorization header has been set before.RestTemplateBuilder.basicAuthentication(String username, String password, @Nullable Charset charset) Deprecated, for removal: This API element is subject to removal in a future version.Add HTTP Basic Authentication to requests with the given username/password pair, unless a custom Authorization header has been set before.RestTemplateBuilder.clientSettings(UnaryOperator<HttpClientSettings> clientSettingsCustomizer) Deprecated, for removal: This API element is subject to removal in a future version.Update theHttpClientSettingsusing the given customizer.RestTemplateBuilder.clientSettings(HttpClientSettings clientSettings) Deprecated, for removal: This API element is subject to removal in a future version.Sets theHttpClientSettings.RestTemplateBuilder.connectTimeout(Duration connectTimeout) Deprecated, for removal: This API element is subject to removal in a future version.Sets the connection timeout on the underlyingClientHttpRequestFactory.RestTemplateBuilder.cookieHandling(HttpCookieHandling cookieHandling) Deprecated, for removal: This API element is subject to removal in a future version.Sets the cookie handling strategy on the underlyingClientHttpRequestFactory.RestTemplateBuilder.customizers(Collection<? extends RestTemplateCustomizer> customizers) Deprecated, for removal: This API element is subject to removal in a future version.Set theRestTemplateCustomizersthat should be applied to theRestTemplate.RestTemplateBuilder.customizers(RestTemplateCustomizer... customizers) Deprecated, for removal: This API element is subject to removal in a future version.Set theRestTemplateCustomizersthat should be applied to theRestTemplate.RestTemplateBuilder.defaultHeader(String name, String... values) Deprecated, for removal: This API element is subject to removal in a future version.Add a default header that will be set if not already present on the outgoingClientHttpRequest.RestTemplateBuilder.defaultMessageConverters()Deprecated, for removal: This API element is subject to removal in a future version.Set theHttpMessageConvertersthat should be used with theRestTemplateto the default set.RestTemplateBuilder.detectRequestFactory(boolean detectRequestFactory) Deprecated, for removal: This API element is subject to removal in a future version.Set if theClientHttpRequestFactoryshould be detected based on the classpath.RestTemplateBuilder.errorHandler(ResponseErrorHandler errorHandler) Deprecated, for removal: This API element is subject to removal in a future version.Set theResponseErrorHandlerthat should be used with theRestTemplate.RestTemplateBuilder.interceptors(Collection<ClientHttpRequestInterceptor> interceptors) Deprecated, for removal: This API element is subject to removal in a future version.Set theClientHttpRequestInterceptorsthat should be used with theRestTemplate.RestTemplateBuilder.interceptors(ClientHttpRequestInterceptor... interceptors) Deprecated, for removal: This API element is subject to removal in a future version.Set theClientHttpRequestInterceptorsthat should be used with theRestTemplate.RestTemplateBuilder.messageConverters(Iterable<? extends HttpMessageConverter<?>> messageConverters) Deprecated, for removal: This API element is subject to removal in a future version.Set theHttpMessageConvertersthat should be used with theRestTemplate.RestTemplateBuilder.messageConverters(HttpMessageConverter<?>... messageConverters) Deprecated, for removal: This API element is subject to removal in a future version.Set theHttpMessageConvertersthat should be used with theRestTemplate.RestTemplateBuilder.readTimeout(Duration readTimeout) Deprecated, for removal: This API element is subject to removal in a future version.Sets the read timeout on the underlyingClientHttpRequestFactory.RestTemplateBuilder.redirects(HttpRedirects redirects) Deprecated, for removal: This API element is subject to removal in a future version.Sets the redirect strategy on the underlyingClientHttpRequestFactory.RestTemplateBuilder.requestCustomizers(Collection<? extends RestTemplateRequestCustomizer<?>> requestCustomizers) Deprecated, for removal: This API element is subject to removal in a future version.Set theRestTemplateRequestCustomizersthat should be applied to theClientHttpRequest.RestTemplateBuilder.requestCustomizers(RestTemplateRequestCustomizer<?>... requestCustomizers) Deprecated, for removal: This API element is subject to removal in a future version.Set theRestTemplateRequestCustomizersthat should be applied to theClientHttpRequest.RestTemplateBuilder.requestFactory(Class<? extends ClientHttpRequestFactory> requestFactoryType) Deprecated, for removal: This API element is subject to removal in a future version.Set theClientHttpRequestFactoryclass that should be used with theRestTemplate.RestTemplateBuilder.requestFactory(Supplier<ClientHttpRequestFactory> requestFactorySupplier) Deprecated, for removal: This API element is subject to removal in a future version.Set theSupplierofClientHttpRequestFactorythat should be called each time weRestTemplateBuilder.build()a newRestTemplateinstance.RestTemplateBuilder.requestFactoryBuilder(ClientHttpRequestFactoryBuilder<?> requestFactoryBuilder) Deprecated, for removal: This API element is subject to removal in a future version.Set theClientHttpRequestFactoryBuilderthat should be used each time weRestTemplateBuilder.build()a newRestTemplateinstance.Deprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.Sets the SSL bundle on the underlyingClientHttpRequestFactory.RestTemplateBuilder.uriTemplateHandler(UriTemplateHandler uriTemplateHandler) Deprecated, for removal: This API element is subject to removal in a future version.Set theUriTemplateHandlerthat should be used with theRestTemplate. -
Uses of RestTemplateBuilder in org.springframework.boot.restclient.autoconfigure
Methods in org.springframework.boot.restclient.autoconfigure that return RestTemplateBuilderModifier and TypeMethodDescriptionRestTemplateBuilderConfigurer.configure(RestTemplateBuilder builder) Deprecated, for removal: This API element is subject to removal in a future version.Configure the specifiedRestTemplateBuilder.Methods in org.springframework.boot.restclient.autoconfigure with parameters of type RestTemplateBuilderModifier and TypeMethodDescriptionRestTemplateBuilderConfigurer.configure(RestTemplateBuilder builder) Deprecated, for removal: This API element is subject to removal in a future version.Configure the specifiedRestTemplateBuilder. -
Uses of RestTemplateBuilder in org.springframework.boot.resttestclient
Constructors in org.springframework.boot.resttestclient with parameters of type RestTemplateBuilderModifierConstructorDescriptionTestRestTemplate(RestTemplateBuilder restTemplateBuilder) Deprecated, for removal: This API element is subject to removal in a future version.Create a newTestRestTemplateinstance.TestRestTemplate(RestTemplateBuilder builder, @Nullable String username, @Nullable String password, TestRestTemplate.HttpClientOption... httpClientOptions) Deprecated, for removal: This API element is subject to removal in a future version.Create a newTestRestTemplateinstance with the specified credentials.
RestTemplateBuilder.baseUri(String)