Go to the latest version of this document.

# ``twisted`.`words`.`protocols`.`jabber`.`xmlstream`.`XMPPHandlerCollection``

class documentation

`class XMPPHandlerCollection: (source)`

Known subclasses: `twisted.words.protocols.jabber.xmlstream.StreamManager`

Implements interfaces: `twisted.words.protocols.jabber.ijabber.IXMPPHandlerCollection`

View In Hierarchy

Collection of XMPP subprotocol handlers.

This allows for grouping of subprotocol handlers, but is not an `XMPPHandler` itself, so this is not recursive.

Method | `__init__` | Undocumented
Method | `__iter__` | Act as a container for handlers.
Method | `addHandler` | Add protocol handler.
Method | `removeHandler` | Remove protocol handler.
Instance Variable | `handlers` | List of protocol handlers.

def __init__(self): (source)
overridden in `twisted.words.protocols.jabber.xmlstream.StreamManager`

Undocumented

def __iter__(self): (source)
from `twisted.words.protocols.jabber.ijabber.IXMPPHandlerCollection`

Act as a container for handlers.

def addHandler(self, handler): (source)
from `twisted.words.protocols.jabber.ijabber.IXMPPHandlerCollection`
overridden in `twisted.words.protocols.jabber.xmlstream.StreamManager`

Add protocol handler.

Protocol handlers are expected to provide `ijabber.IXMPPHandler`.

def removeHandler(self, handler): (source)
from `twisted.words.protocols.jabber.ijabber.IXMPPHandlerCollection`

Remove protocol handler.

handlers: `list` of objects providing `IXMPPHandler` = (source)

List of protocol handlers.