Class t.w.x.x.XmlStreamFactory(protocol.ReconnectingClientFactory):

Part of twisted.words.xish.xmlstream View Source View In Hierarchy

Known subclasses: twisted.words.protocols.jabber.xmlstream.XmlStreamFactory

Factory for XmlStream protocol objects as a reconnection client.

This factory generates XmlStream objects when a connection has been established. To make sure certain event observers are set up before incoming data is processed, you can set up bootstrap event observers using addBootstrap.
Method __init__ Undocumented
Method buildProtocol Create an instance of XmlStream.
Method addBootstrap Add a bootstrap event handler.
Method removeBootstrap Remove a bootstrap event handler.

Inherited from ReconnectingClientFactory:

Method clientConnectionFailed Called when a connection has failed to connect.
Method clientConnectionLost Called when an established connection is lost.
Method retry Have this connector connect again, after a suitable delay.
Method stopTrying I put a stop to any attempt to reconnect in progress.
Method resetDelay Call me after a successful connection to reset.

Inherited from ClientFactory (via ReconnectingClientFactory):

Method startedConnecting Called when a connection has been started.

Inherited from Factory (via ReconnectingClientFactory, ClientFactory):

Method doStart Make sure startFactory is called.
Method doStop Make sure stopFactory is called.
Method startFactory This will be called before I begin listening on a Port or Connector.
Method stopFactory This will be called before I stop listening on all Ports/Connectors.
def __init__(self): (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.