public class ServletPathSpec extends PathSpec
| Constructor | Description |
|---|---|
ServletPathSpec(java.lang.String servletPathSpec) |
| Modifier and Type | Method | Description |
|---|---|---|
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.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
|
static java.lang.String |
normalize(java.lang.String pathSpec) |
If a servlet or filter path mapping isn't a suffix mapping, ensure
it starts with '/'
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcompareTo, equals, getDeclaration, getGroup, getPathDepth, getPrefix, getSuffix, hashCode, toStringpublic static java.lang.String normalize(java.lang.String pathSpec)
pathSpec - the servlet or filter mapping patternpublic java.lang.String getPathInfo(java.lang.String path)
PathSpecgetPathInfo in class PathSpecpath - the path to match againstpublic java.lang.String getPathMatch(java.lang.String path)
PathSpecgetPathMatch in class PathSpecpath - the path to match againstpublic java.lang.String getRelativePath(java.lang.String base,
java.lang.String path)
PathSpecgetRelativePath in class PathSpecbase - the base the path is relative topath - the additional pathCopyright © 1995–2018 Webtide. All rights reserved.