Package org.eclipse.jetty.http.pathmap
Class RegexPathSpec.RegexMatchedPath
- java.lang.Object
-
- org.eclipse.jetty.http.pathmap.RegexPathSpec.RegexMatchedPath
-
- All Implemented Interfaces:
MatchedPath
- Enclosing class:
- RegexPathSpec
private class RegexPathSpec.RegexMatchedPath extends java.lang.Object implements MatchedPath
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.regex.Matchermatcherprivate java.lang.Stringpathprivate RegexPathSpecpathSpec-
Fields inherited from interface org.eclipse.jetty.http.pathmap.MatchedPath
EMPTY
-
-
Constructor Summary
Constructors Constructor Description RegexMatchedPath(RegexPathSpec regexPathSpec, java.lang.String path, java.util.regex.Matcher matcher)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetPathInfo()Return the portion of the path that is after the path spec.java.lang.StringgetPathMatch()Return the portion of the path that matches a path spec.java.lang.StringtoString()
-
-
-
Field Detail
-
pathSpec
private final RegexPathSpec pathSpec
-
path
private final java.lang.String path
-
matcher
private final java.util.regex.Matcher matcher
-
-
Constructor Detail
-
RegexMatchedPath
public RegexMatchedPath(RegexPathSpec regexPathSpec, java.lang.String path, java.util.regex.Matcher matcher)
-
-
Method Detail
-
getPathMatch
public java.lang.String getPathMatch()
Description copied from interface:MatchedPathReturn the portion of the path that matches a path spec.- Specified by:
getPathMatchin interfaceMatchedPath- Returns:
- the path name portion of the match.
-
getPathInfo
public java.lang.String getPathInfo()
Description copied from interface:MatchedPathReturn the portion of the path that is after the path spec.- Specified by:
getPathInfoin interfaceMatchedPath- Returns:
- the path info portion of the match, or null if there is no portion after the
MatchedPath.getPathMatch()
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-