Java org.springframework.web.util UriComponents fields, constructors, methods, implement or subclass

Example usage for Java org.springframework.web.util UriComponents fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for org.springframework.web.util UriComponents.

The text is from its open source code.

Method

UriComponentsencode()
Invoke this after expanding URI variables to encode the resulting URI component values.
UriComponentsencode(Charset charset)
A variant of #encode() with a charset other than "UTF-8".
UriComponentsexpand(Map uriVariables)
Replace all URI template variables with the values from a given map.
UriComponentsexpand(Object... uriVariableValues)
Replace all URI template variables with the values from a given array.
UriComponentsexpand(UriTemplateVariables uriVariables)
Replace all URI template variables with the values from the given UriTemplateVariables .
StringgetFragment()
Return the fragment.
StringgetHost()
Return the host.
StringgetPath()
Return the path.
ListgetPathSegments()
Return the list of path segments.
intgetPort()
Return the port.
StringgetQuery()
Return the query.
MultiValueMapgetQueryParams()
Return the map of query parameters.
StringgetScheme()
Return the scheme.
StringgetUserInfo()
Return the user info.
StringtoString()
A simple pass-through to #toUriString() .
URItoUri()
Create a URI from this instance as follows:

If the current instance is #encode() encoded , form the full URI String via #toUriString() , and then pass it to the single argument URI constructor which preserves percent encoding.

StringtoUriString()
Concatenate all URI components to return the fully formed URI String.