public class URLTemplate extends Object
Constructor and Description |
---|
URLTemplate(String template)
Construct an URL Template object from path.
|
Modifier and Type | Method and Description |
---|---|
URL |
build(String base,
Object... values)
Build a URL with URL Parameters.
|
URL |
buildWithQuery(String base,
String queryString,
Object... values)
Build a URL with Query String and URL Parameters.
|
public URLTemplate(String template)
template
- pathpublic URL build(String base, Object... values)
base
- base URLvalues
- URL parameterspublic URL buildWithQuery(String base, String queryString, Object... values)
base
- base URLqueryString
- query stringvalues
- URL Parameters