public class Url extends Object
| Constructor and Description |
|---|
Url(String base)
Setup a Url 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.
|
Url |
withParam(String key,
String value)
Adds a query-string parameter to the end of the url, like ?key=val.
|
Url |
withPath(String path)
Add a path to a url.
|
public Url(String base)
base - the base Url.public final Url withPath(String path)
path - the path, eg "foo/bar"public final Url withParam(String key, String value)
key - The key for the query string.value - The value for the query string.Copyright © 2012. All Rights Reserved.