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, wait
compareTo, equals, getDeclaration, getGroup, getPathDepth, getPrefix, getSuffix, hashCode, toString
public static java.lang.String normalize(java.lang.String pathSpec)
pathSpec
- the servlet or filter mapping patternpublic 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.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.