|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.glassfish.jersey.uri.PatternWithGroups
org.glassfish.jersey.uri.PathPattern
public final class PathPattern
A path pattern that is a regular expression generated from a URI path template.
The path pattern is normalized by removing a terminating "/" if present.
The path pattern is postfixed with a right hand pattern that consists of either
a matching group that matches zero or more path segments,
see PathPattern.RightHandPath.capturingZeroOrMoreSegments, or zero path
segments, see PathPattern.RightHandPath.capturingZeroSegments.
| Nested Class Summary | |
|---|---|
static class |
PathPattern.RightHandPath
The set of right hand path patterns that may be postfixed to a path pattern. |
| Field Summary | |
|---|---|
static Comparator<PathPattern> |
COMPARATOR
Defer to comparing the templates associated with the patterns |
static PathPattern |
EMPTY_PATH
|
| Fields inherited from class org.glassfish.jersey.uri.PatternWithGroups |
|---|
EMPTY |
| Constructor Summary | |
|---|---|
PathPattern(PathTemplate template)
Create a path pattern and post fix with PathPattern.RightHandPath.capturingZeroOrMoreSegments. |
|
PathPattern(PathTemplate template,
PathPattern.RightHandPath rhpp)
Create a path pattern and post fix with a right hand path pattern. |
|
PathPattern(String template)
Create a path pattern and post fix with PathPattern.RightHandPath.capturingZeroOrMoreSegments. |
|
PathPattern(String template,
PathPattern.RightHandPath rhpp)
Create a path pattern and post fix with a right hand path pattern. |
|
| Method Summary | |
|---|---|
UriTemplate |
getTemplate()
|
| Methods inherited from class org.glassfish.jersey.uri.PatternWithGroups |
|---|
equals, getGroupIndexes, getRegex, hashCode, match, match, match, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final PathPattern EMPTY_PATH
public static final Comparator<PathPattern> COMPARATOR
| Constructor Detail |
|---|
public PathPattern(String template)
PathPattern.RightHandPath.capturingZeroOrMoreSegments.
template - the path template.PathPattern(String, PathPattern.RightHandPath)public PathPattern(PathTemplate template)
PathPattern.RightHandPath.capturingZeroOrMoreSegments.
template - the path templatePathPattern(PathTemplate, PathPattern.RightHandPath)
public PathPattern(String template,
PathPattern.RightHandPath rhpp)
template - the path template.rhpp - the right hand path pattern postfix.
public PathPattern(PathTemplate template,
PathPattern.RightHandPath rhpp)
template - the path template.rhpp - the right hand path pattern postfix.| Method Detail |
|---|
public UriTemplate getTemplate()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||