| Modifier and Type | Class and Description |
|---|---|
| private static class |
| Modifier and Type | Field and Description |
|---|---|
| private final String | |
| private final PathSpecGroup | |
| private final String | _logicalDeclaration
The logical (simplified) declaration |
| private final int | |
| private final Pattern | |
| private final int | |
| private final String[] | |
| private static final Set | |
| private static final Logger | |
| private static final Pattern | |
| private static final String | VARIABLE_RESERVED
Reserved Symbols in URI Template variable |
| private static final String | VARIABLE_SYMBOLS
Allowed Symbols in a URI Template variable |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| private static void | assertIsValidVariableLiteral(String variable, String declaration)
Validate variable literal name, per RFC6570, Section 2.1 Literals |
| public int | compareTo(PathSpec
the object to be compared. other)Overrides org. Implements java. |
| public String | getDeclaration()
Implements org. |
| public PathSpecGroup | |
| protected Matcher | |
| public int | getPathDepth()
Implements org. |
| public String | getPathInfo(String
the path to match against path)Implements org. |
| public String | getPathMatch(String
the path to match against path)Implements org. |
| public Map | |
| public Pattern | |
| public String | getPrefix()
Implements org. |
| public int | getSpecLength()
Implements org. |
| public String | getSuffix()
Implements org. |
| public int | |
| public String[] | |
| private static boolean | |
| public MatchedPath | matched(String
the path to test path)Implements org. |
| public boolean | matches(final String
the path to test path)Overrides default org. |
| _declaration | back to summary |
|---|---|
| private final String _declaration | |
| _group | back to summary |
|---|---|
| private final PathSpecGroup _group | |
| _logicalDeclaration | back to summary |
|---|---|
| private final String _logicalDeclaration The logical (simplified) declaration | |
| _pathDepth | back to summary |
|---|---|
| private final int _pathDepth | |
| _pattern | back to summary |
|---|---|
| private final Pattern _pattern | |
| _specLength | back to summary |
|---|---|
| private final int _specLength | |
| _variables | back to summary |
|---|---|
| private final String[] _variables | |
| FORBIDDEN_SEGMENTS | back to summary |
|---|---|
| private static final Set<String> FORBIDDEN_SEGMENTS | |
| LOG | back to summary |
|---|---|
| private static final Logger LOG | |
| VARIABLE_PATTERN | back to summary |
|---|---|
| private static final Pattern VARIABLE_PATTERN | |
| VARIABLE_RESERVED | back to summary |
|---|---|
| private static final String VARIABLE_RESERVED Reserved Symbols in URI Template variable | |
| VARIABLE_SYMBOLS | back to summary |
|---|---|
| private static final String VARIABLE_SYMBOLS Allowed Symbols in a URI Template variable | |
| UriTemplatePathSpec | back to summary |
|---|---|
| public UriTemplatePathSpec(String rawSpec) | |
| assertIsValidVariableLiteral | back to summary |
|---|---|
| private static void assertIsValidVariableLiteral(String variable, String declaration) Validate variable literal name, per RFC6570, Section 2.1 Literals | |
| compareTo | back to summary |
|---|---|
| public int compareTo(PathSpec other) Overrides org. Implements java. Doc from java. Compares this object with the specified object for order. Returns a negative integer, zero, or a positive integer as this object is less than, equal to, or greater than the specified object. The implementor must ensure The implementor must also ensure that the relation is transitive:
Finally, the implementor must ensure that | |
| getDeclaration | back to summary |
|---|---|
| public String getDeclaration() Implements org. Doc from org. The as-provided path spec. | |
| getGroup | back to summary |
|---|---|
| public PathSpecGroup getGroup() Implements org. Doc from org. The spec group.
| |
| getMatcher | back to summary |
|---|---|
| protected Matcher getMatcher(String path) | |
| getPathDepth | back to summary |
|---|---|
| public int getPathDepth() Implements org. Doc from org. Get the number of path elements that this path spec declares. This is used to determine longest match logic.
| |
| getPathInfo | back to summary |
|---|---|
| public String getPathInfo(String path) Implements org. Doc from org. Return the portion of the path that is after the path spec. | |
| getPathMatch | back to summary |
|---|---|
| public String getPathMatch(String path) Implements org. Doc from org. Return the portion of the path that matches a path spec. | |
| getPathParams | back to summary |
|---|---|
| public Map | |
| getPattern | back to summary |
|---|---|
| public Pattern getPattern() | |
| getPrefix | back to summary |
|---|---|
| public String getPrefix() Implements org. Doc from org. A simple prefix match for the pathspec or null | |
| getSpecLength | back to summary |
|---|---|
| public int getSpecLength() Implements org. Doc from org. The length of the spec.
| |
| getSuffix | back to summary |
|---|---|
| public String getSuffix() Implements org. Doc from org. A simple suffix match for the pathspec or null | |
| getVariableCount | back to summary |
|---|---|
| public int getVariableCount() | |
| getVariables | back to summary |
|---|---|
| public String[] getVariables() | |
| isValidBasicLiteralCodepoint | back to summary |
|---|---|
| private static boolean isValidBasicLiteralCodepoint(int codepoint, String declaration) | |
| matched | back to summary |
|---|---|
| public MatchedPath matched(String path) Implements org. Doc from org. Get the complete matched details of the provided path.
| |
| matches | back to summary |
|---|---|
| public boolean matches(final String path) Overrides default org. Doc from org. Test to see if the provided path matches this path spec.
This can be more efficient that | |
| Modifier and Type | Field and Description |
|---|---|
| private final Matcher | |
| private final String | |
| private final UriTemplatePathSpec |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public String | getPathInfo()
Implements org. |
| public String | getPathMatch()
Implements org. |
| public String |
| matcher | back to summary |
|---|---|
| private final Matcher matcher | |
| path | back to summary |
|---|---|
| private final String path | |
| pathSpec | back to summary |
|---|---|
| private final UriTemplatePathSpec pathSpec | |
| UriTemplateMatchedPath | back to summary |
|---|---|
| public UriTemplateMatchedPath(UriTemplatePathSpec uriTemplatePathSpec, String path, Matcher matcher) | |
| getPathInfo | back to summary |
|---|---|
| public String getPathInfo() Implements org. Doc from org. Return the portion of the path that is after the path spec.
| |
| getPathMatch | back to summary |
|---|---|
| public String getPathMatch() Implements org. Doc from org. Return the portion of the path that matches a path spec. | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object. | |