public class URLEncDec extends Object
Constructor and Description |
---|
URLEncDec() |
Modifier and Type | Method and Description |
---|---|
static String |
decode(String s)
Decodes a
application/x-www-form-urlencoded string using
the UTF-8 encoding scheme. |
static String |
encode(String s)
Translates a string into
application/x-www-form-urlencoded
format using the UTF-8 encoding scheme. |
static String |
encodeLDAPUrl(String s) |
static String |
encodeUrlPath(String u) |
public static String encode(String s)
application/x-www-form-urlencoded
format using the UTF-8 encoding scheme. The
World Wide Web Consortium Recommendation states that UTF-8 should be
used to ensure compatibilities.s
- String
to be translated.String
.public static String decode(String s)
application/x-www-form-urlencoded
string using
the UTF-8 encoding scheme. The
World Wide Web Consortium Recommendation states that UTF-8 should be
used to ensure compatibilities.s
- the String
to decodeString
public static String encodeUrlPath(String u) throws MalformedURLException
MalformedURLException
Copyright © 2010–2025 Open Identity Platform Community. All rights reserved.