Class RegexPathSpec
java.lang.Object
org.eclipse.jetty.http.pathmap.AbstractPathSpec
org.eclipse.jetty.http.pathmap.RegexPathSpec
- All Implemented Interfaces:
Comparable<PathSpec>, PathSpec
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Stringprivate final PathSpecGroupprivate final intprivate final Patternprivate final int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionThe as-provided path spec.getGroup()The spec group.protected MatchergetMatcher(String path) 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 nullbooleanTest to see if the provided path matches this path specMethods inherited from class AbstractPathSpec
compareTo, equals, hashCode, toString
-
Field Details
-
_declaration
-
_group
-
_pathDepth
private final int _pathDepth -
_specLength
private final int _specLength -
_pattern
-
-
Constructor Details
-
RegexPathSpec
-
-
Method Details
-
getMatcher
-
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
-
getPattern
-
matches
-