public class RegexPathSpec extends PathSpec
Modifier and Type | Field and Description |
---|---|
protected Pattern |
pattern |
group, pathDepth, pathSpec, specLength
Modifier | Constructor and Description |
---|---|
protected |
RegexPathSpec() |
|
RegexPathSpec(String regex) |
Modifier and Type | Method and Description |
---|---|
Matcher |
getMatcher(String path) |
String |
getPathInfo(String path)
Return the portion of the path that is after the path spec.
|
String |
getPathMatch(String path)
Return the portion of the path that matches a path spec.
|
Pattern |
getPattern() |
String |
getRelativePath(String base,
String path)
Get the relative path.
|
boolean |
matches(String path)
Test to see if the provided path matches this path spec
|
compareTo, equals, getGroup, getPathDepth, getPathSpec, hashCode, toString
protected Pattern pattern
protected RegexPathSpec()
public RegexPathSpec(String regex)
public String getPathInfo(String path)
PathSpec
getPathInfo
in class PathSpec
path
- the path to match againstpublic String getPathMatch(String path)
PathSpec
getPathMatch
in class PathSpec
path
- the path to match againstpublic Pattern getPattern()
public String getRelativePath(String base, String path)
PathSpec
getRelativePath
in class PathSpec
base
- the base the path is relative topath
- the additional pathCopyright © 1995-2015 Webtide. All Rights Reserved.