Top Description Methods
org.springframework.web.util

public Interface UriTemplateHandler

Known Direct Subinterfaces
org.springframework.web.util.UriBuilderFactory
Imports
java.net.URI, java.util.Map

Defines methods for expanding a URI template with variables.
Author
Rossen Stoyanchev
Since
4.2
See Also
org.springframework.web.client.RestTemplate#setUriTemplateHandler(UriTemplateHandler)

Method Summary

Modifier and TypeMethod and Description
public URI

Returns:

the created URI instance
expand
(String
the URI template
uriTemplate
,
Map<String, ?>
variable values
uriVariables
)

Expand the given URI template with a map of URI variables.

public URI

Returns:

the created URI instance
expand
(String
the URI template
uriTemplate
,
Object...
variable values
uriVariables
)

Expand the given URI template with an array of URI variables.

Method Detail

expandback to summary
public URI expand(String uriTemplate, Map<String, ?> uriVariables)

Expand the given URI template with a map of URI variables.

Parameters
uriTemplate:String

the URI template

uriVariables:Map<String, ?>

variable values

Returns:URI

the created URI instance

expandback to summary
public URI expand(String uriTemplate, Object... uriVariables)

Expand the given URI template with an array of URI variables.

Parameters
uriTemplate:String

the URI template

uriVariables:Object[]

variable values

Returns:URI

the created URI instance