Package org.eclipse.jetty.http.pathmap
Class UriTemplatePathSpec.UriTemplateMatchedPath
- java.lang.Object
-
- org.eclipse.jetty.http.pathmap.UriTemplatePathSpec.UriTemplateMatchedPath
-
- All Implemented Interfaces:
MatchedPath
- Enclosing class:
- UriTemplatePathSpec
private static class UriTemplatePathSpec.UriTemplateMatchedPath extends java.lang.Object implements MatchedPath
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.regex.Matcher
matcher
private java.lang.String
path
private UriTemplatePathSpec
pathSpec
-
Fields inherited from interface org.eclipse.jetty.http.pathmap.MatchedPath
EMPTY
-
-
Constructor Summary
Constructors Constructor Description UriTemplateMatchedPath(UriTemplatePathSpec uriTemplatePathSpec, java.lang.String path, java.util.regex.Matcher matcher)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getPathInfo()
Return the portion of the path that is after the path spec.java.lang.String
getPathMatch()
Return the portion of the path that matches a path spec.java.lang.String
toString()
-
-
-
Field Detail
-
pathSpec
private final UriTemplatePathSpec pathSpec
-
path
private final java.lang.String path
-
matcher
private final java.util.regex.Matcher matcher
-
-
Constructor Detail
-
UriTemplateMatchedPath
public UriTemplateMatchedPath(UriTemplatePathSpec uriTemplatePathSpec, java.lang.String path, java.util.regex.Matcher matcher)
-
-
Method Detail
-
getPathMatch
public java.lang.String getPathMatch()
Description copied from interface:MatchedPath
Return the portion of the path that matches a path spec.- Specified by:
getPathMatch
in interfaceMatchedPath
- Returns:
- the path name portion of the match.
-
getPathInfo
public java.lang.String getPathInfo()
Description copied from interface:MatchedPath
Return the portion of the path that is after the path spec.- Specified by:
getPathInfo
in 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:
toString
in classjava.lang.Object
-
-