| Package | Description |
|---|---|
| io.mikael.urlbuilder |
| Modifier and Type | Method and Description |
|---|---|
UrlBuilder |
UrlBuilder.addParameter(String key,
String value)
Adds a query parameter.
|
static UrlBuilder |
UrlBuilder.empty()
Construct an empty builder instance.
|
UrlBuilder |
UrlBuilder.encodeAs(Charset charset)
When percent-escaping the StringBuilder's output, use this character set.
|
UrlBuilder |
UrlBuilder.encodeAs(String charsetName)
When percent-escaping the StringBuilder's output, use this character set.
|
static UrlBuilder |
UrlBuilder.fromString(String url)
Construct a UrlBuilder from a full or partial URL string.
|
static UrlBuilder |
UrlBuilder.fromString(String url,
Charset inputEncoding)
Construct a UrlBuilder from a full or partial URL string.
|
static UrlBuilder |
UrlBuilder.fromString(String url,
Decoder decoder)
Construct a UrlBuilder from a full or partial URL string.
|
static UrlBuilder |
UrlBuilder.fromString(String url,
String inputEncoding)
Construct a UrlBuilder from a full or partial URL string.
|
static UrlBuilder |
UrlBuilder.fromUri(URI uri)
Construct a UrlBuilder from a
URI. |
static UrlBuilder |
UrlBuilder.fromUrl(URL url)
Construct a UrlBuilder from a
URL. |
protected static UrlBuilder |
UrlBuilder.of(Decoder decoder,
Encoder encoder,
String scheme,
String userInfo,
String hostName,
Integer port,
String path,
UrlParameterMultimap queryParameters,
String fragment) |
UrlBuilder |
UrlBuilder.removeParameter(String key,
String value)
Removes a query parameter for a key and value.
|
UrlBuilder |
UrlBuilder.removeParameters(String key)
Removes all query parameters with this key.
|
UrlBuilder |
UrlBuilder.setParameter(String key,
String value)
Replaces a query parameter.
|
UrlBuilder |
UrlBuilder.withDecoder(Decoder decoder) |
UrlBuilder |
UrlBuilder.withEncoder(Encoder encoder) |
UrlBuilder |
UrlBuilder.withFragment(String fragment)
Sets the fragment/anchor.
|
UrlBuilder |
UrlBuilder.withHost(String name)
Set the host name.
|
UrlBuilder |
UrlBuilder.withParameters(UrlParameterMultimap parameters)
Sets the parameters.
|
UrlBuilder |
UrlBuilder.withPath(String path)
Set the decoded, non-url-encoded path.
|
UrlBuilder |
UrlBuilder.withPath(String path,
Charset encoding)
Decodes and sets the path from a url-encoded string.
|
UrlBuilder |
UrlBuilder.withPath(String path,
String encoding)
Decodes and sets the path from a url-encoded string.
|
UrlBuilder |
UrlBuilder.withPort(Integer port)
Set the port.
|
UrlBuilder |
UrlBuilder.withQuery(String query)
Decodes the input string, and sets the query string.
|
UrlBuilder |
UrlBuilder.withQuery(String query,
Charset encoding)
Decodes the input string, and sets the query string.
|
UrlBuilder |
UrlBuilder.withQuery(UrlParameterMultimap query)
Sets the query parameters to a deep copy of the input parameter.
|
UrlBuilder |
UrlBuilder.withScheme(String scheme)
Set the protocol (or scheme), such as "http" or "https".
|
UrlBuilder |
UrlBuilder.withUserInfo(String userInfo)
Set the userInfo.
|
Copyright © 2017. All rights reserved.