public final class UriTemplate extends Object
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
Set<String> |
getParameterNames()
Returns the set of parameter names.
|
int |
hashCode() |
boolean |
hasParameter(String name)
Returns true if this uri template has the given parameter.
|
static UriTemplate |
of(String uriTemplate)
Creates a new uri template from the given parameter.
|
String |
render(Map<String,Object> uriParameterValues)
Render this uri template filled with the given uri parameter values.
|
String |
toString() |
public boolean hasParameter(String name)
name
- the parameter namepublic Set<String> getParameterNames()
public String render(Map<String,Object> uriParameterValues)
uriParameterValues
- map of parameter names and their valuepublic static UriTemplate of(String uriTemplate)
uriTemplate
- the uri templatepublic String toString()