Part of twisted.words.xish.xmlstream View Source View In Hierarchy
Known subclasses: twisted.words.protocols.jabber.xmlstream.XmlStreamServerFactory, twisted.words.xish.xmlstream.XmlStreamFactoryMixin
XmlStream factory mixin to install bootstrap event observers.
This mixin is for factories providing IProtocolFactory
to make sure bootstrap event observers are set up on protocols, before
incoming data is processed. Such protocols typically derive from utility.EventDispatcher
,
like XmlStream
.
addBootstrap
. The event
and fn
parameters correspond with the event
and
observerfn
arguments to utility.EventDispatcher.addObserver
.
Instance Variables | bootstraps | The list of registered bootstrap event observers. |
Present Since | 8.2. |
Method | __init__ | Undocumented |
Method | installBootstraps | Install registered bootstrap observers. |
Method | addBootstrap | Add a bootstrap event handler. |
Method | removeBootstrap | Remove a bootstrap event handler. |
Parameters | dispatcher | Event dispatcher to add the observers to.
(type: utility.EventDispatcher
) |
Parameters | event | The event to register an observer for.
(type: str or xpath.XPathQuery
) |
fn | The observer callable to be registered. |
Parameters | event | The event the observer is registered for.
(type: str or xpath.XPathQuery
) |
fn | The registered observer callable. |