|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.atlassian.confluence.web.UrlBuilder
public final class UrlBuilder
A builder which can construct URLs by adding parameters. Not thread-safe.
Constructor Summary | |
---|---|
UrlBuilder(String baseUrl,
String encoding)
Constructs a builder with the given base URL, which should already be URL-encoded. |
Method Summary | |
---|---|
UrlBuilder |
add(String name,
int value)
Adds a parameter to the URL. |
UrlBuilder |
add(String name,
long value)
Adds a parameter to the URL. |
UrlBuilder |
add(String name,
String value)
Adds a parameter to the URL. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public UrlBuilder(String baseUrl, String encoding)
Method Detail |
---|
public UrlBuilder add(String name, String value) throws IllegalArgumentException
name
- the name of the parametervalue
- the value of the parameter
IllegalArgumentException
- if either the name or value is nullpublic UrlBuilder add(String name, long value) throws IllegalArgumentException
IllegalArgumentException
add(String, String)
public UrlBuilder add(String name, int value) throws IllegalArgumentException
IllegalArgumentException
add(String, String)
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |