Class UriTemplate
java.lang.Object
org.springframework.extensions.webscripts.UriTemplate
Class representing a Uri Template - with basic {token} format support.
See JAX-RS JSR-311.
- Author:
- davidc
-
Constructor Details
-
UriTemplate
Construct- Parameters:
template- String
-
-
Method Details
-
match
Determine if uri is matched by this uri template and return a map of variable values if it does.- Parameters:
uri- uri to match- Returns:
- map of variable values (or null, if no match, or empty if no vars)
-
getTemplate
- Returns:
- get template
-
getRegex
- Returns:
- get regular expression equivalent
-
getVariableNames
- Returns:
- get variable names contained in uri template
-
getStaticCharCount
public int getStaticCharCount()- Returns:
- get number of static characters in uri template
-
toString
-
hashCode
public final int hashCode() -
equals
-