java.lang.Object | |
↳ | com.google.gwt.http.client.UrlBuilder |
Utility class to build a URL from components. TODO(jlabanca): Add a constructor that parses an existing URL
Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
int | PORT_UNSPECIFIED | The port to use when no port should be specified. |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Build the URL and return it as an encoded string.
| |||||||||||
Remove a query parameter from the map.
| |||||||||||
Set the hash portion of the location (ex.
| |||||||||||
Set the host portion of the location (ex.
| |||||||||||
Set a query parameter to a list of values. | |||||||||||
Set the path portion of the location (ex.
| |||||||||||
Set the port to connect to.
| |||||||||||
Set the protocol portion of the location (ex.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
|
The port to use when no port should be specified.
Build the URL and return it as an encoded string.
Remove a query parameter from the map.
name | the parameter name |
---|
Set the hash portion of the location (ex. myAnchor or #myAnchor).
hash | the hash |
---|
Set the host portion of the location (ex. google.com). You can also specify the port in this method (ex. localhost:8888).
host | the host |
---|
Set a query parameter to a list of values. Each value in the list will be added as its own key/value pair.
?mykey=value0&mykey=value1&mykey=value2
key | the key |
---|---|
values | the list of values |
Set the path portion of the location (ex. path/to/file.html).
path | the path |
---|
Set the port to connect to.
port | the port, or PORT_UNSPECIFIED
|
---|
Set the protocol portion of the location (ex. http).
protocol | the protocol |
---|