private static class UriPatternType.ServletStyleUriPatternMatcher extends java.lang.Object implements UriPatternMatcher
| Modifier and Type | Class and Description |
|---|---|
private static class |
UriPatternType.ServletStyleUriPatternMatcher.Kind |
| Modifier and Type | Field and Description |
|---|---|
private java.lang.String |
literal |
private java.lang.String |
originalPattern |
private UriPatternType.ServletStyleUriPatternMatcher.Kind |
patternKind |
| Constructor and Description |
|---|
ServletStyleUriPatternMatcher(java.lang.String pattern) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
extractPath(java.lang.String path) |
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) |
private final java.lang.String literal
private final java.lang.String originalPattern
private final UriPatternType.ServletStyleUriPatternMatcher.Kind patternKind
public ServletStyleUriPatternMatcher(java.lang.String pattern)
public boolean matches(java.lang.String uri)
matches in interface UriPatternMatcheruri - A "contextual" (i.e. relative) and "normalized" Request URI, *not* a complete one.public java.lang.String extractPath(java.lang.String path)
extractPath in interface UriPatternMatcherpath - 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.public UriPatternType getPatternType()
UriPatternMatchergetPatternType in interface UriPatternMatcherpublic java.lang.String getOriginalPattern()
UriPatternMatchergetOriginalPattern in interface UriPatternMatcher