-
- All Known Subinterfaces:
PathMatcher.PrefixResult
- Enclosing interface:
- PathMatcher
public static interface PathMatcher.Result
The result of matching aPathMatcher
to a given URI path.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
matches()
Whether the tested vector matches the associated path template.String
param(String name)
Get value for a given parameter of the associated path matcher.Map<String,String>
params()
Returns the values of parameters that were specified in the associated path template.
-
-
-
Method Detail
-
matches
boolean matches()
Whether the tested vector matches the associated path template.- Returns:
- whether the test was successful
-
params
Map<String,String> params()
Returns the values of parameters that were specified in the associated path template.- Returns:
- an immutable map of parameters and their values
-
param
String param(String name)
Get value for a given parameter of the associated path matcher.- Parameters:
name
- a parameter name to get value.- Returns:
- a value of the given
parameter
. - Throws:
NullPointerException
- if the specified key is null and this map does not permit null keys.
-
-