Class BasicJSEncoder


  • public class BasicJSEncoder
    extends java.lang.Object
    Class for performing JS encoding on the data.
    • Constructor Summary

      Constructors 
      Constructor Description
      BasicJSEncoder()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String encodeJSCode​(java.lang.String jsCode)
      It accepts the string to be encoded and returns the encoded string for JavaScript.
      java.lang.String encodeJSCodeForAttribute​(java.lang.String jsCode)  
      • Methods inherited from class java.lang.Object

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

      • BasicJSEncoder

        public BasicJSEncoder()
    • Method Detail

      • encodeJSCode

        public java.lang.String encodeJSCode​(java.lang.String jsCode)
        It accepts the string to be encoded and returns the encoded string for JavaScript.
        Parameters:
        jsCode - String value to be encoded
        Returns:
        the encoded string
      • encodeJSCodeForAttribute

        public java.lang.String encodeJSCodeForAttribute​(java.lang.String jsCode)