URI instances.
| Modifier and Type | Field and Description |
|---|---|
| private Charset | |
| private String | |
| private String | |
| private String | |
| private String | |
| private String | |
| private String | |
| private String | |
| private String | |
| private List | |
| private int | |
| private String | |
| private List | |
| private String | |
| private String |
| Access | Constructor and Description |
|---|---|
| public | |
| public | URIBuilder(final String
a valid URI in string form string)Construct an instance from the string which must be a valid URI. |
| public | |
| public | URIBuilder(final String
a valid URI in string form string, final Charset charset)Construct an instance from the string which must be a valid URI. |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public URIBuilder | |
| public URIBuilder | |
| public URI | |
| private String | |
| public URIBuilder | |
| private void | |
| private String | |
| private String | |
| private String | |
| private String | |
| public Charset | |
| public String | |
| public String | |
| public String | |
| public List | |
| public int | |
| public List | |
| public String | |
| public String | |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | |
| private static String | |
| private List | |
| private List | |
| public URIBuilder | |
| public URIBuilder | |
| public URIBuilder | |
| public URIBuilder | |
| public URIBuilder | |
| public URIBuilder | setParameter(final String param, final String value)
Sets parameter of URI query overriding existing value if set. |
| public URIBuilder | |
| public URIBuilder | |
| public URIBuilder | |
| public URIBuilder | |
| public URIBuilder | |
| public URIBuilder | |
| public URIBuilder | setQuery(final String query)
Deprecated
(4.3) use
Sets URI query.
setParameters(List) or setParameters(NameValuePair.
|
| public URIBuilder | |
| public URIBuilder | |
| public URIBuilder | setUserInfo(final String username, final String password)
Sets URI user info as a combination of username and password. |
| public String |
| charset | back to summary |
|---|---|
| private Charset charset | |
| encodedAuthority | back to summary |
|---|---|
| private String encodedAuthority | |
| encodedFragment | back to summary |
|---|---|
| private String encodedFragment | |
| encodedPath | back to summary |
|---|---|
| private String encodedPath | |
| encodedQuery | back to summary |
|---|---|
| private String encodedQuery | |
| encodedSchemeSpecificPart | back to summary |
|---|---|
| private String encodedSchemeSpecificPart | |
| encodedUserInfo | back to summary |
|---|---|
| private String encodedUserInfo | |
| fragment | back to summary |
|---|---|
| private String fragment | |
| host | back to summary |
|---|---|
| private String host | |
| pathSegments | back to summary |
|---|---|
| private List<String> pathSegments | |
| port | back to summary |
|---|---|
| private int port | |
| query | back to summary |
|---|---|
| private String query | |
| queryParams | back to summary |
|---|---|
| private List<NameValuePair> queryParams | |
| scheme | back to summary |
|---|---|
| private String scheme | |
| userInfo | back to summary |
|---|---|
| private String userInfo | |
| URIBuilder | back to summary |
|---|---|
| public URIBuilder() Constructs an empty instance. | |
| URIBuilder | back to summary |
|---|---|
| public URIBuilder(final String string) throws URISyntaxException Construct an instance from the string which must be a valid URI.
| |
| URIBuilder | back to summary |
|---|---|
| public URIBuilder(final URI uri) Construct an instance from the provided URI. | |
| URIBuilder | back to summary |
|---|---|
| public URIBuilder(final String string, final Charset charset) throws URISyntaxException Construct an instance from the string which must be a valid URI.
| |
| URIBuilder | back to summary |
|---|---|
| public URIBuilder(final URI uri, final Charset charset) Construct an instance from the provided URI. | |
| addParameter | back to summary |
|---|---|
| public URIBuilder addParameter(final String param, final String value) Adds parameter to URI query. The parameter name and value are expected to be unescaped and may contain non ASCII characters. Please note query parameters and custom query component are mutually exclusive. This method will remove custom query if present. | |
| addParameters | back to summary |
|---|---|
| public URIBuilder addParameters(final List<NameValuePair> nvps) Adds URI query parameters. The parameter name / values are expected to be unescaped and may contain non ASCII characters. Please note query parameters and custom query component are mutually exclusive. This method will remove custom query if present.
| |
| build | back to summary |
|---|---|
| public URI build() throws URISyntaxException Builds a | |
| buildString | back to summary |
|---|---|
| private String buildString() | |
| clearParameters | back to summary |
|---|---|
| public URIBuilder clearParameters() Clears URI query parameters.
| |
| digestURI | back to summary |
|---|---|
| private void digestURI(final URI uri) | |
| encodePath | back to summary |
|---|---|
| private String encodePath(final List<String> pathSegments) | |
| encodeUric | back to summary |
|---|---|
| private String encodeUric(final String fragment) | |
| encodeUrlForm | back to summary |
|---|---|
| private String encodeUrlForm(final List<NameValuePair> params) | |
| encodeUserInfo | back to summary |
|---|---|
| private String encodeUserInfo(final String userInfo) | |
| getCharset | back to summary |
|---|---|
public Charset getCharset()
| |
| getFragment | back to summary |
|---|---|
| public String getFragment() | |
| getHost | back to summary |
|---|---|
| public String getHost() | |
| getPath | back to summary |
|---|---|
| public String getPath() | |
| getPathSegments | back to summary |
|---|---|
public List
| |
| getPort | back to summary |
|---|---|
| public int getPort() | |
| getQueryParams | back to summary |
|---|---|
| public List | |
| getScheme | back to summary |
|---|---|
| public String getScheme() | |
| getUserInfo | back to summary |
|---|---|
| public String getUserInfo() | |
| isAbsolute | back to summary |
|---|---|
public boolean isAbsolute()
| |
| isOpaque | back to summary |
|---|---|
public boolean isOpaque()
| |
| isPathEmpty | back to summary |
|---|---|
public boolean isPathEmpty()
| |
| isQueryEmpty | back to summary |
|---|---|
public boolean isQueryEmpty()
| |
| normalizePath | back to summary |
|---|---|
| private static String normalizePath(final String path, final boolean relative) | |
| parsePath | back to summary |
|---|---|
| private List | |
| parseQuery | back to summary |
|---|---|
| private List | |
| removeQuery | back to summary |
|---|---|
| public URIBuilder removeQuery() Removes URI query. | |
| setCharset | back to summary |
|---|---|
public URIBuilder setCharset(final Charset charset)
| |
| setCustomQuery | back to summary |
|---|---|
| public URIBuilder setCustomQuery(final String query) Sets custom URI query. The value is expected to be unescaped and may contain non ASCII characters. Please note query parameters and custom query component are mutually exclusive. This method will remove query parameters if present.
| |
| setFragment | back to summary |
|---|---|
| public URIBuilder setFragment(final String fragment) Sets URI fragment. The value is expected to be unescaped and may contain non ASCII characters. | |
| setHost | back to summary |
|---|---|
| public URIBuilder setHost(final String host) Sets URI host. | |
| setParameter | back to summary |
|---|---|
| public URIBuilder setParameter(final String param, final String value) Sets parameter of URI query overriding existing value if set. The parameter name and value are expected to be unescaped and may contain non ASCII characters. Please note query parameters and custom query component are mutually exclusive. This method will remove custom query if present. | |
| setParameters | back to summary |
|---|---|
| public URIBuilder setParameters(final List<NameValuePair> nvps) Sets URI query parameters. The parameter name / values are expected to be unescaped and may contain non ASCII characters. Please note query parameters and custom query component are mutually exclusive. This method will remove custom query if present.
| |
| setParameters | back to summary |
|---|---|
| public URIBuilder setParameters(final NameValuePair... nvps) Sets URI query parameters. The parameter name / values are expected to be unescaped and may contain non ASCII characters. Please note query parameters and custom query component are mutually exclusive. This method will remove custom query if present.
| |
| setPath | back to summary |
|---|---|
| public URIBuilder setPath(final String path) Sets URI path. The value is expected to be unescaped and may contain non ASCII characters.
| |
| setPathSegments | back to summary |
|---|---|
| public URIBuilder setPathSegments(final String... pathSegments) Sets URI path. The value is expected to be unescaped and may contain non ASCII characters.
| |
| setPathSegments | back to summary |
|---|---|
| public URIBuilder setPathSegments(final List<String> pathSegments) Sets URI path. The value is expected to be unescaped and may contain non ASCII characters.
| |
| setPort | back to summary |
|---|---|
| public URIBuilder setPort(final int port) Sets URI port. | |
| setQuery | back to summary |
|---|---|
| public URIBuilder setQuery(final String query)
Deprecated (4.3) use Sets URI query. The value is expected to be encoded form data.
| |
| setScheme | back to summary |
|---|---|
| public URIBuilder setScheme(final String scheme) Sets URI scheme. | |
| setUserInfo | back to summary |
|---|---|
| public URIBuilder setUserInfo(final String userInfo) Sets URI user info. The value is expected to be unescaped and may contain non ASCII characters. | |
| setUserInfo | back to summary |
|---|---|
| public URIBuilder setUserInfo(final String username, final String password) Sets URI user info as a combination of username and password. These values are expected to be unescaped and may contain non ASCII characters. | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object. | |