# Uses of Class
org.springframework.web.util.UriComponents

Packages that use UriComponents
Package
Description
org.springframework.web.util
Miscellaneous web utility classes, such as HTML escaping and cookie handling.

## Uses of UriComponents in org.springframework.web.util

Methods in org.springframework.web.util that return UriComponents
Modifier and Type
Method
Description
`UriComponents`
UriComponentsBuilder.`build()`
Build a `UriComponents` instance from the various components contained in this builder.
`UriComponents`
UriComponentsBuilder.`build(boolean encoded)`
Variant of `UriComponentsBuilder.build()` to create a `UriComponents` instance when components are already fully encoded.
`UriComponents`
UriComponentsBuilder.`buildAndExpand(Object... uriVariableValues)`
Build a `UriComponents` instance and replaces URI template variables with the values from an array.
`UriComponents`
UriComponentsBuilder.`buildAndExpand(Map<String,?> uriVariables)`
Build a `UriComponents` instance and replaces URI template variables with the values from a map.
`final UriComponents`
UriComponents.`encode()`
Invoke this after expanding URI variables to encode the resulting URI component values.
`abstract UriComponents`
UriComponents.`encode(Charset charset)`
A variant of `encode()` with a charset other than "UTF-8".
`final UriComponents`
UriComponents.`expand(Object... uriVariableValues)`
Replace all URI template variables with the values from a given array.
`final UriComponents`
UriComponents.`expand(Map<String,?> uriVariables)`
Replace all URI template variables with the values from a given map.
`final UriComponents`
UriComponents.`expand(UriComponents.UriTemplateVariables uriVariables)`
Replace all URI template variables with the values from the given `UriComponents.UriTemplateVariables`.
`abstract UriComponents`
UriComponents.`normalize()`
Normalize the path removing sequences like "path/..".
Methods in org.springframework.web.util with parameters of type UriComponents
Modifier and Type
Method
Description
`UriComponentsBuilder`
UriComponentsBuilder.`uriComponents(UriComponents uriComponents)`
Set or append individual URI components of this builder from the values of the given `UriComponents` instance.