Class ParserUtils

java.lang.Object
com.ibm.wsspi.kernel.service.utils.ParserUtils

public class ParserUtils extends Object
  • Constructor Details

    • ParserUtils

      public ParserUtils()
  • Method Details

    • encode

      public static String encode(String s)
      Encodes a URL path string. This method is suitable only for URL path strings and is unsuitable for other URL components.
      Parameters:
      s - the string to encode
      Returns:
      the encoded string
    • decode

      public static String decode(String s)
      Decodes a URL-encoded path string. For example, an encoded space (%20) is decoded into a normal space (' ') character.
      Parameters:
      String - encoded - the encoded URL string
      Returns:
      String decoded - the decoded string.