The path pattern is normalized by removing a terminating "/" if present.
The path pattern is post-fixed with a right hand pattern that consists of either a matching group that matches zero
or more path segments, see RightHandPath#capturingZeroOrMoreSegments, or zero path segments, see RightHandPath#capturingZeroSegments.
| Modifier and Type | Class and Description |
|---|---|
| public static enum | PathPattern.
The set of right hand path patterns that may be appended to a path pattern. |
| Modifier and Type | Field and Description |
|---|---|
| public static final Comparator | COMPARATOR
Path pattern comparator that defers to |
| public static final PathPattern | EMPTY_PATTERN
Empty path pattern matching only empty string. |
| public static final PathPattern | END_OF_PATH_PATTERN
Path pattern matching the end of a URI path. |
| public static final PathPattern | OPEN_ROOT_PATH_PATTERN
Path pattern matching the any URI path. |
| private final UriTemplate |
| Access | Constructor and Description |
|---|---|
| private | |
| public | PathPattern(String
the path template. template)Create a path pattern and post fix with |
| public | PathPattern(PathTemplate
the path template template)Create a path pattern and post fix with |
| public | PathPattern(String
the path template. template, PathPattern.the right hand path pattern postfix. rhppCreate a path pattern and post fix with a right hand path pattern. |
| public | PathPattern(PathTemplate
the path template. template, PathPattern.the right hand path pattern postfix. rhppCreate a path pattern and post fix with a right hand path pattern. |
| Modifier and Type | Method and Description |
|---|---|
| private static int[] | |
| public static PathPattern | Returns: closed path pattern for the same path template.an (open) path pattern to convert to a closed pattern. pattern)Return a new path pattern with a same path template but a |
| public UriTemplate | |
| private static String | |
| private static String |
| COMPARATOR | back to summary |
|---|---|
| public static final Comparator<PathPattern> COMPARATOR Path pattern comparator that defers to | |
| EMPTY_PATTERN | back to summary |
|---|---|
| public static final PathPattern EMPTY_PATTERN Empty path pattern matching only empty string. | |
| END_OF_PATH_PATTERN | back to summary |
|---|---|
| public static final PathPattern END_OF_PATH_PATTERN Path pattern matching the end of a URI path. Can be either empty | |
| OPEN_ROOT_PATH_PATTERN | back to summary |
|---|---|
| public static final PathPattern OPEN_ROOT_PATH_PATTERN Path pattern matching the any URI path. | |
| template | back to summary |
|---|---|
| private final UriTemplate template | |
| PathPattern | back to summary |
|---|---|
| private PathPattern() | |
| PathPattern | back to summary |
|---|---|
| public PathPattern(String template) Create a path pattern and post fix with
| |
| PathPattern | back to summary |
|---|---|
| public PathPattern(PathTemplate template) Create a path pattern and post fix with
| |
| PathPattern | back to summary |
|---|---|
| public PathPattern(String template, PathPattern. Create a path pattern and post fix with a right hand path pattern.
| |
| PathPattern | back to summary |
|---|---|
| public PathPattern(PathTemplate template, PathPattern. Create a path pattern and post fix with a right hand path pattern.
| |
| addIndexForRightHandPathCapturingGroup | back to summary |
|---|---|
| private static int[] addIndexForRightHandPathCapturingGroup(int numberOfGroups, int[] indexes) | |
| asClosed | back to summary |
|---|---|
| public static PathPattern asClosed(PathPattern pattern) Return a new path pattern with a same path template but a
| |
| getTemplate | back to summary |
|---|---|
| public UriTemplate getTemplate() | |
| postfixWithCapturingGroup | back to summary |
|---|---|
| private static String postfixWithCapturingGroup(String regex) | |
| postfixWithCapturingGroup | back to summary |
|---|---|
| private static String postfixWithCapturingGroup(String regex, PathPattern. | |
| Modifier and Type | Field and Description |
|---|---|
| public static final PathPattern. | capturingZeroOrMoreSegments
A capturing group that matches zero or more path segments and keeps the matching path template open. |
| public static final PathPattern. | capturingZeroSegments
A capturing group that matches zero segments and effectively closes the matching path template. |
| private final String |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| private String | |
| public static PathPattern. | |
| public static PathPattern. |
| capturingZeroOrMoreSegments | back to summary |
|---|---|
| public static final PathPattern. A capturing group that matches zero or more path segments and keeps the matching path template open. | |
| capturingZeroSegments | back to summary |
|---|---|
| public static final PathPattern. A capturing group that matches zero segments and effectively closes the matching path template. | |
| regex | back to summary |
|---|---|
| private final String regex | |
| RightHandPath | back to summary |
|---|---|
| private RightHandPath(String regex) | |
| getRegex | back to summary |
|---|---|
| private String getRegex() | |
| valueOf | back to summary |
|---|---|
| public static PathPattern. | |
| values | back to summary |
|---|---|
| public static PathPattern. | |