com.ibm.websphere.servlet.response

Class ResponseUtils

  1. java.lang.Object
  2. extended bycom.ibm.websphere.servlet.response.ResponseUtils

  1. public class ResponseUtils
  2. extends java.lang.Object

Constructor Summary

Constructor and Description
ResponseUtils()

Method Summary

Modifier and Type Method and Description
  1. static
  2. 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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructor Detail

ResponseUtils

  1. public ResponseUtils()

Method Detail

encodeDataString

  1. 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