public class ServletPathSpec extends PathSpec
| Constructor and Description |
|---|
ServletPathSpec(String servletPathSpec) |
| Modifier and Type | Method and Description |
|---|---|
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
|
static String |
normalize(String pathSpec)
If a servlet or filter path mapping isn't a suffix mapping, ensure
it starts with '/'
|
compareTo, equals, getDeclaration, getGroup, getPathDepth, getPrefix, getSuffix, hashCode, toStringpublic ServletPathSpec(String servletPathSpec)
public static String normalize(String pathSpec)
pathSpec - the servlet or filter mapping patternpublic 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–2017 Webtide. All rights reserved.