t.w.x.x.XmlStreamFactoryMixin(object) : class documentation

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.

The 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.
def __init__(self, *args, **kwargs): (source)
Undocumented
def buildProtocol(self, addr): (source)

Create an instance of XmlStream.

The returned instance will have bootstrap event observers registered and will proceed to handle input on an incoming connection.
def addBootstrap(self, event, fn): (source)
Add a bootstrap event handler.
def removeBootstrap(self, event, fn): (source)
Remove a bootstrap event handler.
API Documentation for Twisted, generated by pydoctor at 2011-10-27 15:57:47.