Package | Description |
---|---|
org.springframework.boot.web.client |
Web client utilities.
|
Modifier and Type | Method and Description |
---|---|
RestTemplateBuilder |
RestTemplateBuilder.additionalCustomizers(Collection<? extends RestTemplateCustomizer> customizers)
Add
RestTemplateCustomizers that should be applied
to the RestTemplate . |
RestTemplateBuilder |
RestTemplateBuilder.additionalCustomizers(RestTemplateCustomizer... restTemplateCustomizers)
Add
RestTemplateCustomizers that should be applied
to the RestTemplate . |
RestTemplateBuilder |
RestTemplateBuilder.additionalInterceptors(org.springframework.http.client.ClientHttpRequestInterceptor... interceptors)
Add additional
ClientHttpRequestInterceptors
that should be used with the RestTemplate . |
RestTemplateBuilder |
RestTemplateBuilder.additionalInterceptors(Collection<? extends org.springframework.http.client.ClientHttpRequestInterceptor> interceptors)
Add additional
ClientHttpRequestInterceptors
that should be used with the RestTemplate . |
RestTemplateBuilder |
RestTemplateBuilder.additionalMessageConverters(Collection<? extends org.springframework.http.converter.HttpMessageConverter<?>> messageConverters)
Add additional
HttpMessageConverters that should be
used with the RestTemplate . |
RestTemplateBuilder |
RestTemplateBuilder.additionalMessageConverters(org.springframework.http.converter.HttpMessageConverter<?>... messageConverters)
Add additional
HttpMessageConverters that should be
used with the RestTemplate . |
RestTemplateBuilder |
RestTemplateBuilder.basicAuthentication(String username,
String password)
Add HTTP basic authentication to requests.
|
RestTemplateBuilder |
RestTemplateBuilder.basicAuthorization(String username,
String password)
Deprecated.
since 2.1.0 in favor of
basicAuthentication(String username, String password) |
RestTemplateBuilder |
RestTemplateBuilder.customizers(Collection<? extends RestTemplateCustomizer> restTemplateCustomizers)
Set the
RestTemplateCustomizers that should be
applied to the RestTemplate . |
RestTemplateBuilder |
RestTemplateBuilder.customizers(RestTemplateCustomizer... restTemplateCustomizers)
Set the
RestTemplateCustomizers that should be
applied to the RestTemplate . |
RestTemplateBuilder |
RestTemplateBuilder.defaultMessageConverters()
Set the
HttpMessageConverters that should be used with
the RestTemplate to the default set. |
RestTemplateBuilder |
RestTemplateBuilder.detectRequestFactory(boolean detectRequestFactory)
Set if the
ClientHttpRequestFactory should be detected based on the
classpath. |
RestTemplateBuilder |
RestTemplateBuilder.errorHandler(org.springframework.web.client.ResponseErrorHandler errorHandler)
Set the
ResponseErrorHandler that should be used with the
RestTemplate . |
RestTemplateBuilder |
RestTemplateBuilder.interceptors(org.springframework.http.client.ClientHttpRequestInterceptor... interceptors)
Set the
ClientHttpRequestInterceptors that
should be used with the RestTemplate . |
RestTemplateBuilder |
RestTemplateBuilder.interceptors(Collection<org.springframework.http.client.ClientHttpRequestInterceptor> interceptors)
Set the
ClientHttpRequestInterceptors that
should be used with the RestTemplate . |
RestTemplateBuilder |
RestTemplateBuilder.messageConverters(Collection<? extends org.springframework.http.converter.HttpMessageConverter<?>> messageConverters)
Set the
HttpMessageConverters that should be used with
the RestTemplate . |
RestTemplateBuilder |
RestTemplateBuilder.messageConverters(org.springframework.http.converter.HttpMessageConverter<?>... messageConverters)
Set the
HttpMessageConverters that should be used with
the RestTemplate . |
RestTemplateBuilder |
RestTemplateBuilder.requestFactory(Class<? extends org.springframework.http.client.ClientHttpRequestFactory> requestFactory)
Set the
ClientHttpRequestFactory class that should be used with the
RestTemplate . |
RestTemplateBuilder |
RestTemplateBuilder.requestFactory(Supplier<org.springframework.http.client.ClientHttpRequestFactory> requestFactorySupplier)
Set the
Supplier of ClientHttpRequestFactory that should be called
each time we build() a new RestTemplate instance. |
RestTemplateBuilder |
RestTemplateBuilder.rootUri(String rootUri)
Set a root URL that should be applied to each request that starts with
'/' . |
RestTemplateBuilder |
RestTemplateBuilder.setConnectTimeout(Duration connectTimeout)
Sets the connection timeout on the underlying
ClientHttpRequestFactory . |
RestTemplateBuilder |
RestTemplateBuilder.setConnectTimeout(int connectTimeout)
Deprecated.
since 2.1.0 in favor of
setConnectTimeout(Duration) |
RestTemplateBuilder |
RestTemplateBuilder.setReadTimeout(Duration readTimeout)
Sets the read timeout on the underlying
ClientHttpRequestFactory . |
RestTemplateBuilder |
RestTemplateBuilder.setReadTimeout(int readTimeout)
Deprecated.
since 2.1.0 in favor of
setReadTimeout(Duration) |
RestTemplateBuilder |
RestTemplateBuilder.uriTemplateHandler(org.springframework.web.util.UriTemplateHandler uriTemplateHandler)
Set the
UriTemplateHandler that should be used with the
RestTemplate . |
Copyright © 2020 Pivotal Software, Inc.. All rights reserved.