public interface UriTemplateHandler
Supported as a property on the RestTemplate as well as the
AsyncRestTemplate. The DefaultUriTemplateHandler is built
on Spring's URI template support via UriComponentsBuilder. An
alternative implementation may be used to plug external URI template libraries.
RestTemplate.setUriTemplateHandler(org.springframework.web.util.UriTemplateHandler)| Modifier and Type | Method and Description |
|---|---|
java.net.URI |
expand(java.lang.String uriTemplate,
java.util.Map<java.lang.String,?> uriVariables)
Expand the given URI template from a map of URI variables.
|
java.net.URI |
expand(java.lang.String uriTemplate,
java.lang.Object... uriVariables)
Expand the given URI template from an array of URI variables.
|
java.net.URI expand(java.lang.String uriTemplate,
java.util.Map<java.lang.String,?> uriVariables)
uriTemplate - the URI template stringuriVariables - the URI variablesjava.net.URI expand(java.lang.String uriTemplate,
java.lang.Object... uriVariables)
uriTemplate - the URI template stringuriVariables - the URI variable values