Class ScriptInjectionEventListener

  • All Implemented Interfaces:
    org.w3c.dom.events.EventListener

    public class ScriptInjectionEventListener
    extends java.lang.Object
    implements org.w3c.dom.events.EventListener
    A DOM listener that listen for injections of <script> tags and calls a JavaScript function when it detects such injections. This mechanism is used to simulate the browser behavior in case of callback-polling transport. This class is used from the env.js script.
    • Constructor Summary

      Constructors 
      Constructor Description
      ScriptInjectionEventListener​(ThreadModel threadModel, org.mozilla.javascript.Scriptable thiz, org.mozilla.javascript.Function function, java.util.Map domNodes)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void handleEvent​(org.w3c.dom.events.Event evt)  
      • Methods inherited from class java.lang.Object

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

      • ScriptInjectionEventListener

        public ScriptInjectionEventListener​(ThreadModel threadModel,
                                            org.mozilla.javascript.Scriptable thiz,
                                            org.mozilla.javascript.Function function,
                                            java.util.Map domNodes)
    • Method Detail

      • handleEvent

        public void handleEvent​(org.w3c.dom.events.Event evt)
        Specified by:
        handleEvent in interface org.w3c.dom.events.EventListener