Class ResponseUtils


  • public class ResponseUtils
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      ResponseUtils()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.lang.String encodeDataString​(java.lang.String iString)
      Searches the passed in String for any characters that could be used in a cross site scripting attack (<, >, +, &, ", ', (, ), %, ;) and converts them to their browser equivalent name or code specification.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ResponseUtils

        public ResponseUtils()
    • Method Detail

      • encodeDataString

        public static java.lang.String encodeDataString​(java.lang.String iString)
        Searches the passed in String for any characters that could be used in a cross site scripting attack (<, >, +, &, ", ', (, ), %, ;) and converts them to their browser equivalent name or code specification.
        Parameters:
        iString - contains the String to be encoded
        Returns:
        an encoded String