Package org.duracloud.common.web
Class EncodeUtil
- java.lang.Object
-
- org.duracloud.common.web.EncodeUtil
-
public class EncodeUtil extends Object
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static StringurlDecode(String toDecode)static StringurlEncode(String toEncode)Encodes characters within a string to allow them to be used within a URL.
-
-
-
Field Detail
-
ENCODING
public static final String ENCODING
- See Also:
- Constant Field Values
-
-
Method Detail
-
urlEncode
public static String urlEncode(String toEncode)
Encodes characters within a string to allow them to be used within a URL. Note that the entire URL should not be passed to this method as it will encode characters like ':' and '/'.- Parameters:
toEncode- String to encode- Returns:
- encoded string
-
-