Uses of Class
org.springframework.boot.web.client.RestTemplateBuilder
Package
Description
Auto-configuration for actuator Cloud Foundry concerns using Spring MVC.
Auto-configuration for tracing with Zipkin.
Auto-configuration for web clients.
Auto-configuration for web clients.
Web client test utilities.
Web client utilities.
-
Uses of RestTemplateBuilder in org.springframework.boot.actuate.autoconfigure.cloudfoundry.servlet
Modifier and TypeMethodDescriptionorg.springframework.boot.actuate.autoconfigure.cloudfoundry.servlet.CloudFoundryWebEndpointServletHandlerMapping
CloudFoundryActuatorAutoConfiguration.cloudFoundryWebEndpointServletHandlerMapping
(ParameterValueMapper parameterMapper, EndpointMediaTypes endpointMediaTypes, RestTemplateBuilder restTemplateBuilder, ServletEndpointsSupplier servletEndpointsSupplier, ControllerEndpointsSupplier controllerEndpointsSupplier, ApplicationContext applicationContext) -
Uses of RestTemplateBuilder in org.springframework.boot.actuate.autoconfigure.tracing.zipkin
Modifier and TypeMethodDescriptionvoid
ZipkinRestTemplateBuilderCustomizer.customize
(RestTemplateBuilder restTemplateBuilder) Customize the rest template builder. -
Uses of RestTemplateBuilder in org.springframework.boot.autoconfigure.web.client
Modifier and TypeMethodDescriptionRestTemplateBuilderConfigurer.configure
(RestTemplateBuilder builder) Configure the specifiedRestTemplateBuilder
.RestTemplateAutoConfiguration.restTemplateBuilder
(RestTemplateBuilderConfigurer restTemplateBuilderConfigurer) Modifier and TypeMethodDescriptionRestTemplateBuilderConfigurer.configure
(RestTemplateBuilder builder) Configure the specifiedRestTemplateBuilder
. -
Uses of RestTemplateBuilder in org.springframework.boot.test.autoconfigure.web.client
Modifier and TypeMethodDescriptionWebClientRestTemplateAutoConfiguration.restTemplate
(RestTemplateBuilder builder) -
Uses of RestTemplateBuilder in org.springframework.boot.test.web.client
ModifierConstructorDescriptionTestRestTemplate
(RestTemplateBuilder restTemplateBuilder) Create a newTestRestTemplate
instance.TestRestTemplate
(RestTemplateBuilder builder, String username, String password, TestRestTemplate.HttpClientOption... httpClientOptions) Create a newTestRestTemplate
instance with the specified credentials. -
Uses of RestTemplateBuilder in org.springframework.boot.web.client
Modifier and TypeMethodDescriptionRestTemplateBuilder.additionalCustomizers
(Collection<? extends RestTemplateCustomizer> customizers) AddRestTemplateCustomizers
that should be applied to theRestTemplate
.RestTemplateBuilder.additionalCustomizers
(RestTemplateCustomizer... customizers) AddRestTemplateCustomizers
that should be applied to theRestTemplate
.RestTemplateBuilder.additionalInterceptors
(Collection<? extends ClientHttpRequestInterceptor> interceptors) Add additionalClientHttpRequestInterceptors
that should be used with theRestTemplate
.RestTemplateBuilder.additionalInterceptors
(ClientHttpRequestInterceptor... interceptors) Add additionalClientHttpRequestInterceptors
that should be used with theRestTemplate
.RestTemplateBuilder.additionalMessageConverters
(Collection<? extends HttpMessageConverter<?>> messageConverters) Add additionalHttpMessageConverters
that should be used with theRestTemplate
.RestTemplateBuilder.additionalMessageConverters
(HttpMessageConverter<?>... messageConverters) Add additionalHttpMessageConverters
that should be used with theRestTemplate
.RestTemplateBuilder.additionalRequestCustomizers
(Collection<? extends RestTemplateRequestCustomizer<?>> requestCustomizers) Add theRestTemplateRequestCustomizers
that should be applied to theClientHttpRequest
.RestTemplateBuilder.additionalRequestCustomizers
(RestTemplateRequestCustomizer<?>... requestCustomizers) Add theRestTemplateRequestCustomizers
that should be applied to theClientHttpRequest
.RestTemplateBuilder.basicAuthentication
(String username, String password) 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, Charset charset) Add HTTP Basic Authentication to requests with the given username/password pair, unless a custom Authorization header has been set before.RestTemplateBuilder.customizers
(Collection<? extends RestTemplateCustomizer> customizers) Set theRestTemplateCustomizers
that should be applied to theRestTemplate
.RestTemplateBuilder.customizers
(RestTemplateCustomizer... customizers) Set theRestTemplateCustomizers
that should be applied to theRestTemplate
.RestTemplateBuilder.defaultHeader
(String name, String... values) Add a default header that will be set if not already present on the outgoingHttpClientRequest
.RestTemplateBuilder.defaultMessageConverters()
Set theHttpMessageConverters
that should be used with theRestTemplate
to the default set.RestTemplateBuilder.detectRequestFactory
(boolean detectRequestFactory) Set if theClientHttpRequestFactory
should be detected based on the classpath.RestTemplateBuilder.errorHandler
(ResponseErrorHandler errorHandler) Set theResponseErrorHandler
that should be used with theRestTemplate
.RestTemplateBuilder.interceptors
(Collection<ClientHttpRequestInterceptor> interceptors) Set theClientHttpRequestInterceptors
that should be used with theRestTemplate
.RestTemplateBuilder.interceptors
(ClientHttpRequestInterceptor... interceptors) Set theClientHttpRequestInterceptors
that should be used with theRestTemplate
.RestTemplateBuilder.messageConverters
(Collection<? extends HttpMessageConverter<?>> messageConverters) Set theHttpMessageConverters
that should be used with theRestTemplate
.RestTemplateBuilder.messageConverters
(HttpMessageConverter<?>... messageConverters) Set theHttpMessageConverters
that should be used with theRestTemplate
.RestTemplateBuilder.requestCustomizers
(Collection<? extends RestTemplateRequestCustomizer<?>> requestCustomizers) Set theRestTemplateRequestCustomizers
that should be applied to theClientHttpRequest
.RestTemplateBuilder.requestCustomizers
(RestTemplateRequestCustomizer<?>... requestCustomizers) Set theRestTemplateRequestCustomizers
that should be applied to theClientHttpRequest
.RestTemplateBuilder.requestFactory
(Class<? extends ClientHttpRequestFactory> requestFactory) Set theClientHttpRequestFactory
class that should be used with theRestTemplate
.RestTemplateBuilder.requestFactory
(Supplier<ClientHttpRequestFactory> requestFactory) Set theSupplier
ofClientHttpRequestFactory
that should be called each time webuild()
a newRestTemplate
instance.Set a root URL that should be applied to each request that starts with'/'
.RestTemplateBuilder.setBufferRequestBody
(boolean bufferRequestBody) Sets if the underlyingClientHttpRequestFactory
should buffer the request body internally.RestTemplateBuilder.setConnectTimeout
(Duration connectTimeout) Sets the connection timeout on the underlyingClientHttpRequestFactory
.RestTemplateBuilder.setReadTimeout
(Duration readTimeout) Sets the read timeout on the underlyingClientHttpRequestFactory
.RestTemplateBuilder.uriTemplateHandler
(UriTemplateHandler uriTemplateHandler) Set theUriTemplateHandler
that should be used with theRestTemplate
.