Package org.springframework.web.util
Interface UriTemplateHandler
- All Known Implementing Classes:
AbstractUriTemplateHandler
,DefaultUriTemplateHandler
public interface UriTemplateHandler
Strategy for expanding a URI template with full control over the URI template syntax and the encoding of variables. Also a convenient central point for pre-processing all URI templates for example to insert a common base path.Supported as a property on the
RestTemplate
as well as theAsyncRestTemplate
. TheDefaultUriTemplateHandler
is built on Spring's URI template support viaUriComponentsBuilder
. An alternative implementation may be used to plug external URI template libraries.- Since:
- 4.2
- Author:
- Rossen Stoyanchev
- See Also:
RestTemplate.setUriTemplateHandler(org.springframework.web.util.UriTemplateHandler)
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description URI
expand(String uriTemplate, Object... uriVariables)
Expand the given URI template from an array of URI variables.URI
expand(String uriTemplate, Map<String,?> uriVariables)
Expand the given URI template from a map of URI variables.