| Modifier and Type | Field and Description |
|---|---|
| private final String | |
| private final PathSpecGroup | |
| private final int | |
| private final int | |
| private final String | |
| private final MatchedPath | |
| private final int | |
| private final String | |
| private static final Logger |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| private static void | |
| public String | getDeclaration()
Implements org. The as-provided path spec. |
| public PathSpecGroup | |
| public int | getPathDepth()
Implements org. Get the number of path elements that this path spec declares. |
| public String | getPathInfo(String
the path to match against path)Implements org.
Deprecated
use
matched(String)#MatchedPath#getPathInfo() instead.
Return the portion of the path that is after the path spec. |
| public String | getPathMatch(String
the path to match against path)Implements org.
Deprecated
use
matched(String)#MatchedPath#getPathMatch() instead.
Return the portion of the path that matches a path spec. |
| public String | getPrefix()
Implements org. A simple prefix match for the pathspec or null |
| public int | getSpecLength()
Implements org. The length of the spec. |
| public String | getSuffix()
Implements org. A simple suffix match for the pathspec or null |
| private static boolean | |
| private boolean | |
| public static boolean | |
| public static boolean | |
| public MatchedPath | matched(String
the path to test path)Implements org. Get the complete matched details of the provided path. |
| public boolean | matches(String
the path to test path)Overrides default org. Test to see if the provided path matches this path spec. |
| public static String | |
| public static String | |
| public static String | |
| public static String | Returns: base plus path with pathspec removedThe base the path is relative to. base, String The spec of the path segment to ignore. pathSpec, String the additional path path)Relative path. |
| _declaration | back to summary |
|---|---|
| private final String _declaration | |
| _group | back to summary |
|---|---|
| private final PathSpecGroup _group | |
| _matchLength | back to summary |
|---|---|
| private final int _matchLength | |
| _pathDepth | back to summary |
|---|---|
| private final int _pathDepth | |
| _prefix | back to summary |
|---|---|
| private final String _prefix | |
| _preMatchedPath | back to summary |
|---|---|
| private final MatchedPath _preMatchedPath | |
| _specLength | back to summary |
|---|---|
| private final int _specLength | |
| _suffix | back to summary |
|---|---|
| private final String _suffix | |
| LOG | back to summary |
|---|---|
| private static final Logger LOG | |
| ServletPathSpec | back to summary |
|---|---|
| public ServletPathSpec(String servletPathSpec) | |
| assertValidServletPathSpec | back to summary |
|---|---|
| private static void assertValidServletPathSpec(String servletPathSpec) | |
| getDeclaration | back to summary |
|---|---|
| public String getDeclaration() Implements org. Doc from org. The as-provided path spec. | |
| getGroup | back to summary |
|---|---|
| public PathSpecGroup getGroup() Implements org. Doc from org. The spec group.
| |
| getPathDepth | back to summary |
|---|---|
| public int getPathDepth() Implements org. Doc from org. Get the number of path elements that this path spec declares. This is used to determine longest match logic.
| |
| getPathInfo | back to summary |
|---|---|
| public String getPathInfo(String path) Implements org. Doc from org. Deprecated use Return the portion of the path that is after the path spec. | |
| getPathMatch | back to summary |
|---|---|
| public String getPathMatch(String path) Implements org. Doc from org. Deprecated use Return the portion of the path that matches a path spec. | |
| getPrefix | back to summary |
|---|---|
| public String getPrefix() Implements org. Doc from org. A simple prefix match for the pathspec or null | |
| getSpecLength | back to summary |
|---|---|
| public int getSpecLength() Implements org. Doc from org. The length of the spec.
| |
| getSuffix | back to summary |
|---|---|
| public String getSuffix() Implements org. Doc from org. A simple suffix match for the pathspec or null | |
| isPathWildcardMatch | back to summary |
|---|---|
| private static boolean isPathWildcardMatch(String pathSpec, String path) | |
| isWildcardMatch | back to summary |
|---|---|
| private boolean isWildcardMatch(String path) | |
| match | back to summary |
|---|---|
| public static boolean match(String pathSpec, String path) | |
| match | back to summary |
|---|---|
| public static boolean match(String pathSpec, String path, boolean noDefault) | |
| matched | back to summary |
|---|---|
| public MatchedPath matched(String path) Implements org. Doc from org. Get the complete matched details of the provided path.
| |
| matches | back to summary |
|---|---|
| public boolean matches(String path) Overrides default org. Doc from org. Test to see if the provided path matches this path spec.
This can be more efficient that | |
| normalize | back to summary |
|---|---|
| public static String normalize(String pathSpec) If a servlet or filter path mapping isn't a suffix mapping, ensure it starts with '/' | |
| pathInfo | back to summary |
|---|---|
| public static String pathInfo(String pathSpec, String path) Return the portion of a path that is after a path spec. | |
| pathMatch | back to summary |
|---|---|
| public static String pathMatch(String pathSpec, String path) Return the portion of a path that matches a path spec. | |
| relativePath | back to summary |
|---|---|
| public static String relativePath(String base, String pathSpec, String path) Relative path. | |