java.lang.Object
com.levigo.jadice.web.demo.common.shared.util.URLUtils

public class URLUtils extends Object
Utility class escaping certain chars so that URLs fit to our way of tile transportation.
  • Constructor Details

    • URLUtils

      public URLUtils()
  • Method Details

    • escape

      public static String escape(String message)
      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

      public static String unescape(String message)
      Reverse the operations done in escape(String)
      Parameters:
      message - the String to be reversed
      Returns:
      the reversed String