public interface UriPatternMatcher
| 限定符和类型 | 方法和说明 |
|---|---|
String |
extractPath(String pattern) |
UriPatternType |
getPatternType()
Returns the type of pattern this is.
|
boolean |
matches(String uri) |
boolean matches(String uri)
uri - A "contextual" (i.e. relative) Request URI, *not* a complete one.String extractPath(String pattern)
pattern - The Path that this service pattern can match against./home/* then the path extracted will be /home. Each pattern matcher
implementation must decide and publish what a canonical path represents.
NOTE(dhanji): This method returns null for the regex pattern matcher.UriPatternType getPatternType()