interface UriPatternMatcher
Modifier and Type | Method and Description |
---|---|
java.lang.String |
extractPath(java.lang.String pattern) |
java.lang.String |
getOriginalPattern()
Returns the original pattern that was registered.
|
UriPatternType |
getPatternType()
Returns the type of pattern this is.
|
boolean |
matches(java.lang.String uri) |
boolean matches(java.lang.String uri)
uri
- A "contextual" (i.e. relative) and "normalized" Request URI, *not* a complete one.java.lang.String extractPath(java.lang.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()
java.lang.String getOriginalPattern()