Class URLUtils
java.lang.Object
com.levigo.jadice.web.demo.common.shared.util.URLUtils
Utility class escaping certain chars so that URLs fit to our way of tile transportation.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
URLUtils
public URLUtils()
-
-
Method Details
-
escape
we replace the "|" with "*" because they don't need to be encoded and therefore the URL is shorter. If there are any "*" in the URL from the beginning we replace them with the ASCII equivalent "%2A".- Parameters:
message
- the String to be escaped- Returns:
- the escaped value
-
unescape
Reverse the operations done inescape(String)
- Parameters:
message
- the String to be reversed- Returns:
- the reversed String
-