Package org.springframework.vault.client
Interface RestTemplateFactory
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Factory interface that produces a
RestTemplate
object. Factory implementations
are expected to create a new RestTemplate
object when calling
create()
.- Since:
- 2.3
- Author:
- Mark Paluch
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptiondefault RestTemplate
create()
Create aRestTemplate
instance.create
(Consumer<RestTemplateBuilder> customizer)
-
Method Details
-
create
Create aRestTemplate
instance.- Returns:
- a
RestTemplate
instance.
-
create
- Parameters:
customizer
- builder customizer.- Returns:
- a
RestTemplate
instance.
-