Package io.airlift.http.client
Class HttpUriBuilder
java.lang.Object
io.airlift.http.client.HttpUriBuilder
An RFC-3986-compatible HTTP URI builder
-
Method Summary
Modifier and TypeMethodDescriptionaddParameter(String name, Iterable<String> values) addParameter(String name, String... values) appendPath(String path) Append an unencoded path.build()hostAndPort(com.google.common.net.HostAndPort hostAndPort) port(int port) replaceParameter(String name, Iterable<String> values) replaceParameter(String name, String... values) replacePath(String path) Replace the current path with the given unencoded pathtoString()static HttpUriBuilderstatic HttpUriBuilderuriBuilderFrom(URI uri)
-
Method Details
-
uriBuilder
-
uriBuilderFrom
-
scheme
-
host
-
port
-
defaultPort
-
hostAndPort
-
replacePath
Replace the current path with the given unencoded path -
appendPath
Append an unencoded path.All reserved characters except '/' will be percent-encoded. '/' are considered as path separators and appended verbatim.
-
replaceParameter
-
replaceParameter
-
addParameter
-
addParameter
-
toString
-
build
-