public interface UriPatternMatcher
Modifier and Type | Method and Description |
---|---|
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()
Copyright © 2006–2015 Google, Inc.. All rights reserved.