|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.github.fge.uritemplate.URITemplate
public final class URITemplate
Main URI template class
URITemplateParser
Constructor Summary | |
---|---|
URITemplate(String input)
Constructor |
Method Summary | |
---|---|
String |
toString(VariableMap vars)
Expand this template to a string given a list of variables |
URI |
toURI(VariableMap vars)
Expand this template to a URI given a set of variables |
URL |
toURL(VariableMap vars)
Expand this template to a URL given a set of variables |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public URITemplate(String input) throws URITemplateParseException
input
- the input string
URITemplateParseException
- parse errorMethod Detail |
---|
public String toString(VariableMap vars) throws URITemplateException
vars
- the variable map (names as keys, contents as values)
URITemplateException
- expansion error (f.e. modifier mismatch)public URI toURI(VariableMap vars) throws URITemplateException, URISyntaxException
vars
- the variables
URITemplateException
- see toString(VariableMap)
URISyntaxException
- expanded string is not a valid URIpublic URL toURL(VariableMap vars) throws URITemplateException, MalformedURLException
vars
- the variables
URITemplateException
- see toString(VariableMap)
MalformedURLException
- expanded string is not a valid URL
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |