UriTemplatePathSpec
public class RegexPathSpec extends PathSpec
Modifier and Type | Field | Description |
---|---|---|
protected java.util.regex.Pattern |
pattern |
Modifier | Constructor | Description |
---|---|---|
protected |
RegexPathSpec() |
|
|
RegexPathSpec(java.lang.String regex) |
Modifier and Type | Method | Description |
---|---|---|
java.util.regex.Matcher |
getMatcher(java.lang.String path) |
|
java.lang.String |
getPathInfo(java.lang.String path) |
Return the portion of the path that is after the path spec.
|
java.lang.String |
getPathMatch(java.lang.String path) |
Return the portion of the path that matches a path spec.
|
java.util.regex.Pattern |
getPattern() |
|
java.lang.String |
getRelativePath(java.lang.String base,
java.lang.String path) |
Get the relative path.
|
boolean |
matches(java.lang.String path) |
Test to see if the provided path matches this path spec
|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
compareTo, equals, getDeclaration, getGroup, getPathDepth, getPrefix, getSuffix, hashCode, toString
protected RegexPathSpec()
public RegexPathSpec(java.lang.String regex)
public java.util.regex.Matcher getMatcher(java.lang.String path)
public java.lang.String getPathInfo(java.lang.String path)
PathSpec
getPathInfo
in class PathSpec
path
- the path to match againstpublic java.lang.String getPathMatch(java.lang.String path)
PathSpec
getPathMatch
in class PathSpec
path
- the path to match againstpublic java.util.regex.Pattern getPattern()
public java.lang.String getRelativePath(java.lang.String base, java.lang.String path)
PathSpec
getRelativePath
in class PathSpec
base
- the base the path is relative topath
- the additional pathCopyright © 1995–2017 Webtide. All rights reserved.