spring-framework / org.springframework.web.util / UriUtils / encodeUriVariables

encodeUriVariables

open static fun encodeUriVariables(uriVariables: MutableMap<String, *>): MutableMap<String, String>

Apply #encode(String, String) to the values in the given URI variables and return a new Map containing the encoded values.

Parameters

uriVariables - the URI variable values to be encoded

Return
the encoded String

Since
5.0

open static fun encodeUriVariables(vararg uriVariables: Any): Array<Any>

Apply #encode(String, String) to the values in the given URI variables and return a new array containing the encoded values.

Parameters

uriVariables - the URI variable values to be encoded

Return
the encoded String

Since
5.0