public class URITemplate extends Object
| Constructor and Description |
|---|
URITemplate(String template)
Creates a new URI Template instance.
|
| Modifier and Type | Method and Description |
|---|---|
static List<Token> |
digest(String template)
Returns the list of tokens corresponding to the specified URI template.
|
static List<Token> |
digest(String template,
TokenFactory factory)
Returns the list of tokens corresponding to the specified URI template.
|
boolean |
equals(Object o) |
int |
hashCode() |
List<Token> |
tokens()
Returns the underlying list of tokens.
|
String |
toString() |
public URITemplate(String template) throws IllegalArgumentException
template - A String following the URI template syntax.NullPointerException - If the specified template is null.URITemplateSyntaxException - If the string provided does not follow the proper syntax.IllegalArgumentExceptionpublic static List<Token> digest(String template) throws URITemplateSyntaxException
template - The URI template to digest.URITemplateSyntaxException - If the string cannot be parsed.public static List<Token> digest(String template, TokenFactory factory) throws URITemplateSyntaxException
template - The URI template to digest.URITemplateSyntaxException - If the string cannot be parsed.public List<Token> tokens()
Copyright © 2025. All rights reserved.