-
- All Known Implementing Classes:
HttpComponentsRestTemplateConfigurator,OkHttpRestTemplateConfigurator,SimpleRestTemplateConfigurator
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@Deprecated(since="4.0.0", forRemoval=true) @FunctionalInterface public interface RestTemplateConfigurator
Deprecated, for removal: This API element is subject to removal in a future version.An extension point to configure theRestTemplateused in aClientinstance.This is typically used to configure the
ClientHttpRequestFactoryto use, and thus the library to create HTTP requests.Hop provides support for Apache HttpComponents (the default), OkHttp, and standard JDK HTTP facilities.
- Since:
- 3.6.0
- See Also:
HttpComponentsRestTemplateConfigurator,OkHttpRestTemplateConfigurator,RestTemplate,ClientHttpRequestFactory
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description org.springframework.web.client.RestTemplateconfigure(ClientCreationContext context)Deprecated, for removal: This API element is subject to removal in a future version.Configure aRestTemplateinstance and return it for use in theClient.
-
-
-
Method Detail
-
configure
org.springframework.web.client.RestTemplate configure(ClientCreationContext context)
Deprecated, for removal: This API element is subject to removal in a future version.Configure aRestTemplateinstance and return it for use in theClient.- Parameters:
context- some context during client creation- Returns:
- the
RestTemplateto use
-
-