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 numeric URL Parameters.
|
URL |
buildAlpha(String base,
Object... values)
Build a URL with alphanumeric URL Parameters.
|
URL |
buildAlphaWithQuery(String base,
String queryString,
Object... values)
Build a URL with Query String and alphanumeric URL Parameters.
|
URL |
buildWithQuery(String base,
String queryString,
Object... values)
Build a URL with Query String and numeric URL Parameters.
|
public URLTemplate(String template)
template
- pathpublic URL build(String base, Object... values)
base
- base URLvalues
- URL parameterspublic URL buildAlpha(String base, Object... values)
base
- base URLvalues
- URL parameterspublic URL buildWithQuery(String base, String queryString, Object... values)
base
- base URLqueryString
- query stringvalues
- URL Parameterspublic URL buildAlphaWithQuery(String base, String queryString, Object... values)
base
- base URLqueryString
- query stringvalues
- URL Parameters