Class URLHelper

java.lang.Object
org.azd.helpers.URLHelper
Direct Known Subclasses:
Utils

public class URLHelper extends Object
Url helper class to encode the special characters in the url.
  • Constructor Details

    • URLHelper

      public URLHelper()
  • Method Details

    • encodeSpace

      public static String encodeSpace(String s)
      Encode the space character in the given string
      Parameters:
      s - input string value
      Returns:
      the encoded string value
    • encodeSpecialChars

      public static String encodeSpecialChars(String s)
      Encodes any special character in the given string
      Parameters:
      s - input string value
      Returns:
      he encoded string value
    • encodeSpecialWithSpace

      public static String encodeSpecialWithSpace(String s)
      Combine the two functionality above: encode and replace space characters after the fact with '%20'
      Parameters:
      s - input string value
      Returns:
      String encoded string value