Package org.cometd.javascript
Class ScriptInjectionEventListener
- java.lang.Object
-
- org.cometd.javascript.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)
-
-
-
Constructor Detail
-
ScriptInjectionEventListener
public ScriptInjectionEventListener(ThreadModel threadModel, org.mozilla.javascript.Scriptable thiz, org.mozilla.javascript.Function function, java.util.Map domNodes)
-
-