com.ibm.tivoli.maximo.asset.ilog.applet

Class JavascripURLInputStreamResolver

  • java.lang.Object
    • com.ibm.tivoli.maximo.asset.ilog.applet.JavascripURLInputStreamResolver
  • All Implemented Interfaces:
    InputStreamResolver, JavascriptHandler


    public class JavascripURLInputStreamResolver
    extends java.lang.Object
    implements InputStreamResolver, JavascriptHandler
    when httpOnly set set browsers will not send cookies, and FF, even if you force it to send cookies, it will still drop them. The work around is to communicate with Javascript and have Javascript do the sending and receiving. The caveat is that the data being sent and data being returned is url and base64 encoded.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      void onJavascriptResponse(int id, java.lang.String data)
      Called with the orig or the request and the data from the server.
      java.io.InputStream openStream(java.net.URL url) 
      • Methods inherited from class java.lang.Object

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

      • JavascripURLInputStreamResolver

        public JavascripURLInputStreamResolver(ILogApplet applet)
    • Method Detail

      • openStream

        public java.io.InputStream openStream(java.net.URL url)
                                       throws java.io.IOException
        Specified by:
        openStream in interface InputStreamResolver
        Throws:
        java.io.IOException
      • onJavascriptResponse

        public void onJavascriptResponse(int id,
                                         java.lang.String data)
        Description copied from interface: JavascriptHandler
        Called with the orig or the request and the data from the server. Data may be null if there was a server issue.
        Specified by:
        onJavascriptResponse in interface JavascriptHandler