Class ServletPathSpec
java.lang.Object
org.eclipse.jetty.http.pathmap.AbstractPathSpec
org.eclipse.jetty.http.pathmap.ServletPathSpec
- All Implemented Interfaces:
Comparable<PathSpec>, PathSpec
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Stringprivate final PathSpecGroupprivate final intprivate final Stringprivate final intprivate final Stringprivate static final Logger -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static voidassertValidServletPathSpec(String servletPathSpec) The as-provided path spec.getGroup()The spec group.intGet the number of path elements that this path spec declares.getPathInfo(String path) Return the portion of the path that is after the path spec.getPathMatch(String path) Return the portion of the path that matches a path spec.A simple prefix match for the pathspec or nullintThe length of the spec.A simple suffix match for the pathspec or nullprivate booleanisWildcardMatch(String path) booleanTest to see if the provided path matches this path specstatic StringIf a servlet or filter path mapping isn't a suffix mapping, ensure it starts with '/'Methods inherited from class AbstractPathSpec
compareTo, equals, hashCode, toString
-
Field Details
-
LOG
-
_declaration
-
_group
-
_pathDepth
private final int _pathDepth -
_specLength
private final int _specLength -
_prefix
-
_suffix
-
-
Constructor Details
-
ServletPathSpec
-
-
Method Details
-
normalize
-
assertValidServletPathSpec
-
getSpecLength
public int getSpecLength()Description copied from interface:PathSpecThe length of the spec.- Returns:
- the length of the spec.
-
getGroup
-
getPathDepth
public int getPathDepth()Description copied from interface:PathSpecGet the number of path elements that this path spec declares.This is used to determine longest match logic.
- Returns:
- the depth of the path segments that this spec declares
-
getPathInfo
-
getPathMatch
-
getDeclaration
-
getPrefix
-
getSuffix
-
isWildcardMatch
-
matches
-