final class OpaqueUriComponents extends UriComponents
UriComponents for opaque URIs.UriComponents.UriTemplateVariables| Modifier and Type | Field and Description |
|---|---|
private static MultiValueMap<java.lang.String,java.lang.String> |
QUERY_PARAMS_NONE |
private java.lang.String |
ssp |
| Constructor and Description |
|---|
OpaqueUriComponents(java.lang.String scheme,
java.lang.String schemeSpecificPart,
java.lang.String fragment) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
copyToUriComponentsBuilder(UriComponentsBuilder builder)
Set all components of the given UriComponentsBuilder.
|
UriComponents |
encode(java.lang.String encoding)
Encode all URI components using their specific encoding rules, and
returns the result as a new
UriComponents instance. |
boolean |
equals(java.lang.Object obj) |
protected UriComponents |
expandInternal(UriComponents.UriTemplateVariables uriVariables)
Replace all URI template variables with the values from the given
UriComponents.UriTemplateVariables |
java.lang.String |
getHost()
Returns the host.
|
java.lang.String |
getPath()
Returns the path.
|
java.util.List<java.lang.String> |
getPathSegments()
Returns the list of path segments.
|
int |
getPort()
Returns the port.
|
java.lang.String |
getQuery()
Returns the query.
|
MultiValueMap<java.lang.String,java.lang.String> |
getQueryParams()
Returns the map of query parameters.
|
java.lang.String |
getSchemeSpecificPart()
Returns the scheme specific part.
|
java.lang.String |
getUserInfo()
Returns the user info.
|
int |
hashCode() |
UriComponents |
normalize()
Normalize the path removing sequences like "path/..".
|
java.net.URI |
toUri()
Return a
URI from this UriComponents instance. |
java.lang.String |
toUriString()
Return a URI string from this
UriComponents instance. |
encode, expand, expand, expand, expandUriComponent, getFragment, getScheme, toStringprivate static final MultiValueMap<java.lang.String,java.lang.String> QUERY_PARAMS_NONE
private final java.lang.String ssp
OpaqueUriComponents(java.lang.String scheme,
java.lang.String schemeSpecificPart,
java.lang.String fragment)
public java.lang.String getSchemeSpecificPart()
UriComponentsnull.getSchemeSpecificPart in class UriComponentspublic java.lang.String getUserInfo()
UriComponentsnull.getUserInfo in class UriComponentspublic java.lang.String getHost()
UriComponentsnull.getHost in class UriComponentspublic int getPort()
UriComponents-1 if no port has been set.getPort in class UriComponentspublic java.lang.String getPath()
UriComponentsnull.getPath in class UriComponentspublic java.util.List<java.lang.String> getPathSegments()
UriComponentsgetPathSegments in class UriComponentspublic java.lang.String getQuery()
UriComponentsnull.getQuery in class UriComponentspublic MultiValueMap<java.lang.String,java.lang.String> getQueryParams()
UriComponentsgetQueryParams in class UriComponentspublic UriComponents encode(java.lang.String encoding) throws java.io.UnsupportedEncodingException
UriComponentsUriComponents instance.encode in class UriComponentsencoding - the encoding of the values contained in this mapjava.io.UnsupportedEncodingException - if the given encoding is not supportedprotected UriComponents expandInternal(UriComponents.UriTemplateVariables uriVariables)
UriComponentsUriComponents.UriTemplateVariablesexpandInternal in class UriComponentsuriVariables - URI template valuespublic UriComponents normalize()
UriComponentsnormalize in class UriComponentsStringUtils.cleanPath(String)public java.lang.String toUriString()
UriComponentsUriComponents instance.toUriString in class UriComponentspublic java.net.URI toUri()
UriComponentsURI from this UriComponents instance.toUri in class UriComponentsprotected void copyToUriComponentsBuilder(UriComponentsBuilder builder)
UriComponentscopyToUriComponentsBuilder in class UriComponentspublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Object