Package com.rabbitmq.http.client
Interface RestTemplateConfigurator
-
- 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.
@FunctionalInterface public interface RestTemplateConfigurator
An extension point to configure theRestTemplate
used in aClient
instance.This is typically used to configure the
ClientHttpRequestFactory
to 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 Modifier and Type Method Description org.springframework.web.client.RestTemplate
configure(ClientCreationContext context)
Configure aRestTemplate
instance and return it for use in theClient
.
-
-
-
Method Detail
-
configure
org.springframework.web.client.RestTemplate configure(ClientCreationContext context)
Configure aRestTemplate
instance and return it for use in theClient
.- Parameters:
context
- some context during client creation- Returns:
- the
RestTemplate
to use
-
-