Package | Description |
---|---|
org.apache.hc.core5.net |
Core network component APIs and utilities.
|
Modifier and Type | Method and Description |
---|---|
URIBuilder |
URIBuilder.addParameter(String param,
String value)
Adds parameter to URI query.
|
URIBuilder |
URIBuilder.addParameters(List<NameValuePair> nvps)
Adds URI query parameters.
|
URIBuilder |
URIBuilder.appendPath(String path)
Appends path to URI.
|
URIBuilder |
URIBuilder.appendPathSegments(List<String> pathSegments)
Appends segments to URI path.
|
URIBuilder |
URIBuilder.appendPathSegments(String... pathSegments)
Appends segments URI path.
|
URIBuilder |
URIBuilder.clearParameters()
Clears URI query parameters.
|
static URIBuilder |
URIBuilder.localhost()
Creates a new builder for the host
InetAddress.getLocalHost() . |
static URIBuilder |
URIBuilder.loopbackAddress()
Creates a new builder for the host
InetAddress.getLoopbackAddress() . |
URIBuilder |
URIBuilder.normalizeSyntax()
Normalizes syntax of URI components if the URI is considered non-opaque
(the path component has a root):
characters of scheme and host components are converted to lower case
dot segments of the path component are removed if the path has a root
percent encoding of all components is normalized
|
URIBuilder |
URIBuilder.removeQuery()
Removes URI query.
|
URIBuilder |
URIBuilder.setCharset(Charset charset) |
URIBuilder |
URIBuilder.setCustomQuery(String query)
Sets custom URI query.
|
URIBuilder |
URIBuilder.setFragment(String fragment)
Sets URI fragment.
|
URIBuilder |
URIBuilder.setHost(InetAddress host)
Sets URI host.
|
URIBuilder |
URIBuilder.setHost(String host)
Sets URI host.
|
URIBuilder |
URIBuilder.setHttpHost(HttpHost httpHost)
Sets the scheme, host name, and port.
|
URIBuilder |
URIBuilder.setParameter(String param,
String value)
Sets parameter of URI query overriding existing value if set.
|
URIBuilder |
URIBuilder.setParameters(List<NameValuePair> nvps)
Sets URI query parameters.
|
URIBuilder |
URIBuilder.setParameters(NameValuePair... nvps)
Sets URI query parameters.
|
URIBuilder |
URIBuilder.setPath(String path)
Sets URI path.
|
URIBuilder |
URIBuilder.setPathSegments(List<String> pathSegments)
Sets URI path.
|
URIBuilder |
URIBuilder.setPathSegments(String... pathSegments)
Sets URI path.
|
URIBuilder |
URIBuilder.setPathSegmentsRootless(List<String> pathSegments)
Sets rootless URI path (the first segment does not start with a /).
|
URIBuilder |
URIBuilder.setPathSegmentsRootless(String... pathSegments)
Sets rootless URI path (the first segment does not start with a /).
|
URIBuilder |
URIBuilder.setPort(int port)
Sets URI port.
|
URIBuilder |
URIBuilder.setScheme(String scheme)
Sets URI scheme.
|
URIBuilder |
URIBuilder.setSchemeSpecificPart(String schemeSpecificPart)
Sets the URI scheme specific part.
|
URIBuilder |
URIBuilder.setSchemeSpecificPart(String schemeSpecificPart,
List<NameValuePair> nvps)
Sets the URI scheme specific part and append a list of NameValuePair to this part.
|
URIBuilder |
URIBuilder.setSchemeSpecificPart(String schemeSpecificPart,
NameValuePair... nvps)
Sets the URI scheme specific part and append a variable arguments list of NameValuePair instance(s) to this part.
|
URIBuilder |
URIBuilder.setUserInfo(String userInfo)
Sets URI user info.
|
URIBuilder |
URIBuilder.setUserInfo(String username,
String password)
Deprecated.
The use of clear-text passwords in
URI s has been deprecated and is strongly
discouraged. |
Copyright © 2005–2021 The Apache Software Foundation. All rights reserved.