Class UrlDecoder
java.lang.Object
org.springframework.boot.loader.net.util.UrlDecoder
Utility to decode URL strings. Copied from Spring Framework's
StringUtils
as we
cannot depend on it in the loader.- Since:
- 3.2.0
- Author:
- Phillip Webb, Stephane Nicoll
-
Method Summary
Modifier and TypeMethodDescriptionstatic String
Decode the given encoded URI component value by replacing each "%xy
" sequence with a hexadecimal representation of the character inUTF-8
, leaving other characters unmodified.static String
Decode the given encoded URI component value by replacing each "%xy
" sequence with a hexadecimal representation of the character in the specified character encoding, leaving other characters unmodified.
-
Method Details
-
decode
-
decode
Decode the given encoded URI component value by replacing each "%xy
" sequence with a hexadecimal representation of the character in the specified character encoding, leaving other characters unmodified.- Parameters:
source
- the encoded URI component valuecharset
- the character encoding to use to decode the "%xy
" sequences- Returns:
- the decoded value
- Since:
- 4.0.0
-