Class SingleMatchResult
java.lang.Object
org.glassfish.jersey.server.internal.routing.SingleMatchResult
- All Implemented Interfaces:
MatchResult
MatchResult
implementation that returns the nested string as a
single matching result. This match result mimics matching of a single
matching group with group index 0 (the one containing the whole expression).-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionSingleMatchResult
(String path) Construct a match result matching the whole supplied path. -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.util.regex.MatchResult
end, group, hasMatch, namedGroups, start
-
Field Details
-
path
-
-
Constructor Details
-
SingleMatchResult
Construct a match result matching the whole supplied path.- Parameters:
path
- matched path.
-
-
Method Details
-
stripMatrixParams
Strip the matrix parameters from a path.- Returns:
- path stripped of matrix parameters.
-
start
public int start()- Specified by:
start
in interfaceMatchResult
-
start
public int start(int group) - Specified by:
start
in interfaceMatchResult
-
end
public int end()- Specified by:
end
in interfaceMatchResult
-
end
public int end(int group) - Specified by:
end
in interfaceMatchResult
-
group
- Specified by:
group
in interfaceMatchResult
-
group
- Specified by:
group
in interfaceMatchResult
-
groupCount
public int groupCount()- Specified by:
groupCount
in interfaceMatchResult
-