public final class UriQueryBuilder
extends java.lang.Object
| Constructor and Description |
|---|
UriQueryBuilder() |
| Modifier and Type | Method and Description |
|---|---|
void |
add(java.lang.String name,
java.lang.String value)
Adds a value to the URI with escaping.
|
java.net.URI |
addToURI(java.net.URI uri)
Adds query parameter to an existing Uri.
|
java.lang.String |
toString()
Returns a string that represents this instance.
|
public void add(java.lang.String name,
java.lang.String value)
throws HawaiiException
name - the query key name.value - the query value.HawaiiExceptionpublic java.net.URI addToURI(java.net.URI uri)
throws java.net.URISyntaxException,
HawaiiException
uri - the original uri.java.net.URISyntaxException - if the resulting uri is invalid.HawaiiExceptionpublic java.lang.String toString()
toString in class java.lang.Object