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 listens 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
browser.js
script.-
Constructor Summary
Constructors Constructor Description ScriptInjectionEventListener(JavaScript javaScript, java.lang.Object jsThis, java.lang.Object function, java.util.Map<?,?> domNodes)
-
Method Summary
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 Details
-
ScriptInjectionEventListener
public ScriptInjectionEventListener(JavaScript javaScript, java.lang.Object jsThis, java.lang.Object function, java.util.Map<?,?> domNodes)
-
-
Method Details
-
handleEvent
public void handleEvent(org.w3c.dom.events.Event evt)- Specified by:
handleEvent
in interfaceorg.w3c.dom.events.EventListener
-