|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sun.jersey.api.uri.UriTemplateParser
public class UriTemplateParser
A URI template parser that parses JAX-RS specific URI templates.
| Constructor Summary | |
|---|---|
UriTemplateParser(java.lang.String template)
Parse a template. |
|
| Method Summary | |
|---|---|
protected java.lang.String |
encodeLiteralCharacters(java.lang.String literalCharacters)
Encode literal characters of a template. |
java.util.List<java.lang.Integer> |
getGroupCounts()
Get the capturing group counts for each template variable. |
int[] |
getGroupIndexes()
Get the group indexes to capturing groups. |
java.util.List<java.lang.String> |
getNames()
Get the list of template names. |
java.util.Map<java.lang.String,java.util.regex.Pattern> |
getNameToPattern()
Get the map of template names to patterns. |
java.lang.String |
getNormalizedTemplate()
Get the normalized template. |
int |
getNumberOfExplicitRegexes()
Get the number of explicit regular expressions. |
int |
getNumberOfLiteralCharacters()
Get the number of literal characters. |
java.util.regex.Pattern |
getPattern()
Get the pattern. |
java.lang.String |
getTemplate()
Get the template. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public UriTemplateParser(java.lang.String template)
template - the template.
java.lang.IllegalArgumentException - if the template is null, an empty string
or does not conform to a JAX-RS URI template.| Method Detail |
|---|
public final java.lang.String getTemplate()
public final java.util.regex.Pattern getPattern()
public final java.lang.String getNormalizedTemplate()
A normalized template is a template without any explicit regular expressions.
public final java.util.Map<java.lang.String,java.util.regex.Pattern> getNameToPattern()
public final java.util.List<java.lang.String> getNames()
public final java.util.List<java.lang.Integer> getGroupCounts()
public final int[] getGroupIndexes()
Any nested capturing groups will be ignored and the the group index will refer to the top-level capturing groups associated with the templates variables.
public final int getNumberOfExplicitRegexes()
public final int getNumberOfLiteralCharacters()
protected java.lang.String encodeLiteralCharacters(java.lang.String literalCharacters)
literalCharacters - the literal characters
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||