Part of twisted.words.xish.xmlstream View Source View In Hierarchy
Known subclasses: twisted.words.xish.xmlstream.XmlStreamFactory
XmlStream factory mixin that takes care of event handlers.
To make sure certain event observers are set up before incoming data is
processed, you can set up bootstrap event observers using
addBootstrap
.
event
and fn
parameters correspond with
the event
and observerfn
arguments to utility.EventDispatcher.addObserver
.
Method | __init__ | Undocumented |
Method | buildProtocol | Create an instance of XmlStream. |
Method | addBootstrap | Add a bootstrap event handler. |
Method | removeBootstrap | Remove a bootstrap event handler. |
Create an instance of XmlStream.
The returned instance will have bootstrap event observers registered and will proceed to handle input on an incoming connection.