public class ServletPathSpec extends PathSpec
| Modifier and Type | Field and Description |
|---|---|
static String |
PATH_SPEC_SEPARATORS |
group, pathDepth, pathSpec, specLength| Constructor and Description |
|---|
ServletPathSpec(String servletPathSpec) |
| Modifier and Type | Method and Description |
|---|---|
static ServletPathSpec[] |
getMultiPathSpecs(String servletPathSpec)
Get multi-path spec splits.
|
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.
|
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, toStringpublic static final String PATH_SPEC_SEPARATORS
public ServletPathSpec(String servletPathSpec)
public static ServletPathSpec[] getMultiPathSpecs(String servletPathSpec)
servletPathSpec - the path spec that might contain multiple declared path specspublic String getPathInfo(String path)
PathSpecgetPathInfo in class PathSpecpath - the path to match againstpublic String getPathMatch(String path)
PathSpecgetPathMatch in class PathSpecpath - the path to match againstpublic String getRelativePath(String base, String path)
PathSpecgetRelativePath in class PathSpecbase - the base the path is relative topath - the additional pathCopyright © 1995-2015 Webtide. All Rights Reserved.