| Constructor and Description |
|---|
ImmutableUrl(String base)
Setup an ImmutableUrl with a base path, like "http://localhost:8080".
|
| Modifier and Type | Method and Description |
|---|---|
String |
toString()
You can pass this object to all the get/post/put/delete etc methods.
|
ImmutableUrl |
withParam(String key,
String value)
Adds a query-string parameter to the end of the url, like ?key=val.
|
ImmutableUrl |
withPath(String path)
Add a path to a url.
|
public ImmutableUrl(String base)
base - the base Url.public ImmutableUrl withPath(String path)
path - the path, eg "foo/bar"public ImmutableUrl withParam(String key, String value)
key - The key for the query string.value - The value for the query string.Copyright © 2013. All Rights Reserved.