Class JspWrapper

  • All Implemented Interfaces:
    IHTTPOutput, IHTTPOutputActivity, IPasswordMapperActivity

    public class JspWrapper
    extends java.lang.Object
    implements IHTTPOutput
    This class provides an implementation of IHTTPOutput, which provides output services to connector UI interfaces. More broadly, it provides the services that all connectors will need in order to provide UI components.
    • Constructor Summary

      Constructors 
      Constructor Description
      JspWrapper​(javax.servlet.jsp.JspWriter writer, AdminProfile adminProfile)
      Constructor.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void flush()
      Flush the stream
      java.lang.String mapKeyToPassword​(java.lang.String key)
      Convert a key, created by mapPasswordToKey, back to the original password, within the lifetime of the browser session.
      java.lang.String mapPasswordToKey​(java.lang.String password)
      Map a password to a unique key.
      void newLine()
      Write a newline
      void print​(boolean b)
      Write a boolean
      void print​(char c)
      Write a char
      void print​(char[] c)
      Write an array of chars
      void print​(double d)
      Write a double
      void print​(float f)
      Write a float
      void print​(int i)
      Write an int
      void print​(long l)
      Write a long
      void print​(java.lang.Object o)
      Write an object
      void print​(java.lang.String s)
      Write a string
      void println​(boolean b)
      Write a boolean
      void println​(char c)
      Write a char
      void println​(char[] c)
      Write an array of chars
      void println​(double d)
      Write a double
      void println​(float f)
      Write a float
      void println​(int i)
      Write an int
      void println​(long l)
      Write a long
      void println​(java.lang.Object o)
      Write an object
      void println​(java.lang.String s)
      Write a string
      • Methods inherited from class java.lang.Object

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

      • writer

        protected final javax.servlet.jsp.JspWriter writer
    • Constructor Detail

      • JspWrapper

        public JspWrapper​(javax.servlet.jsp.JspWriter writer,
                          AdminProfile adminProfile)
        Constructor.
    • Method Detail

      • flush

        public void flush()
                   throws java.io.IOException
        Flush the stream
        Specified by:
        flush in interface IHTTPOutputActivity
        Throws:
        java.io.IOException
      • newLine

        public void newLine()
                     throws java.io.IOException
        Write a newline
        Specified by:
        newLine in interface IHTTPOutputActivity
        Throws:
        java.io.IOException
      • print

        public void print​(boolean b)
                   throws java.io.IOException
        Write a boolean
        Specified by:
        print in interface IHTTPOutputActivity
        Throws:
        java.io.IOException
      • print

        public void print​(char c)
                   throws java.io.IOException
        Write a char
        Specified by:
        print in interface IHTTPOutputActivity
        Throws:
        java.io.IOException
      • print

        public void print​(char[] c)
                   throws java.io.IOException
        Write an array of chars
        Specified by:
        print in interface IHTTPOutputActivity
        Throws:
        java.io.IOException
      • print

        public void print​(double d)
                   throws java.io.IOException
        Write a double
        Specified by:
        print in interface IHTTPOutputActivity
        Throws:
        java.io.IOException
      • print

        public void print​(float f)
                   throws java.io.IOException
        Write a float
        Specified by:
        print in interface IHTTPOutputActivity
        Throws:
        java.io.IOException
      • print

        public void print​(int i)
                   throws java.io.IOException
        Write an int
        Specified by:
        print in interface IHTTPOutputActivity
        Throws:
        java.io.IOException
      • print

        public void print​(long l)
                   throws java.io.IOException
        Write a long
        Specified by:
        print in interface IHTTPOutputActivity
        Throws:
        java.io.IOException
      • print

        public void print​(java.lang.Object o)
                   throws java.io.IOException
        Write an object
        Specified by:
        print in interface IHTTPOutputActivity
        Throws:
        java.io.IOException
      • print

        public void print​(java.lang.String s)
                   throws java.io.IOException
        Write a string
        Specified by:
        print in interface IHTTPOutputActivity
        Throws:
        java.io.IOException
      • println

        public void println​(boolean b)
                     throws java.io.IOException
        Write a boolean
        Specified by:
        println in interface IHTTPOutputActivity
        Throws:
        java.io.IOException
      • println

        public void println​(char c)
                     throws java.io.IOException
        Write a char
        Specified by:
        println in interface IHTTPOutputActivity
        Throws:
        java.io.IOException
      • println

        public void println​(char[] c)
                     throws java.io.IOException
        Write an array of chars
        Specified by:
        println in interface IHTTPOutputActivity
        Throws:
        java.io.IOException
      • println

        public void println​(double d)
                     throws java.io.IOException
        Write a double
        Specified by:
        println in interface IHTTPOutputActivity
        Throws:
        java.io.IOException
      • println

        public void println​(float f)
                     throws java.io.IOException
        Write a float
        Specified by:
        println in interface IHTTPOutputActivity
        Throws:
        java.io.IOException
      • println

        public void println​(int i)
                     throws java.io.IOException
        Write an int
        Specified by:
        println in interface IHTTPOutputActivity
        Throws:
        java.io.IOException
      • println

        public void println​(long l)
                     throws java.io.IOException
        Write a long
        Specified by:
        println in interface IHTTPOutputActivity
        Throws:
        java.io.IOException
      • println

        public void println​(java.lang.Object o)
                     throws java.io.IOException
        Write an object
        Specified by:
        println in interface IHTTPOutputActivity
        Throws:
        java.io.IOException
      • println

        public void println​(java.lang.String s)
                     throws java.io.IOException
        Write a string
        Specified by:
        println in interface IHTTPOutputActivity
        Throws:
        java.io.IOException
      • mapPasswordToKey

        public java.lang.String mapPasswordToKey​(java.lang.String password)
        Map a password to a unique key. This method works within a specific given browser session to replace an existing password with a key which can be used to look up the password at a later time.
        Specified by:
        mapPasswordToKey in interface IPasswordMapperActivity
        Parameters:
        password - is the password.
        Returns:
        the key.
      • mapKeyToPassword

        public java.lang.String mapKeyToPassword​(java.lang.String key)
        Convert a key, created by mapPasswordToKey, back to the original password, within the lifetime of the browser session. If the provided key is not an actual key, instead the key value is assumed to be a new password value.
        Specified by:
        mapKeyToPassword in interface IPasswordMapperActivity
        Parameters:
        key - is the key.
        Returns:
        the password.