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 RestTemplatecreate()Create aRestTemplateinstance.create(Consumer<RestTemplateBuilder> customizer)
-
Method Details
-
create
Create aRestTemplateinstance.- Returns:
- a
RestTemplateinstance.
-
create
- Parameters:
customizer- builder customizer.- Returns:
- a
RestTemplateinstance.
-