class documentation

class twisted.words.protocols.jabber.xmlstream.BaseFeatureInitiatingInitializer: (source)

Known subclasses: twisted.words.protocols.jabber.client.BindInitializer, twisted.words.protocols.jabber.client.SessionInitializer, twisted.words.protocols.jabber.sasl.SASLInitiatingInitializer, twisted.words.protocols.jabber.xmlstream.TLSInitiatingInitializer

Implements interfaces: twisted.words.protocols.jabber.ijabber.IInitiatingInitializer

View In Hierarchy

Base class for initializers with a stream feature.

This assumes the associated XmlStream represents the initiating entity of the connection.

Class Variable feature tuple of (uri, name) of the stream feature root element.
Instance Variable required whether the stream feature is required to be advertized by the receiving entity.
Method __init__ Undocumented
Instance Variable xmlstream The associated XML stream
Method initialize Initiate the initialization.
Method start Start the actual initialization.
required = (source)
whether the stream feature is required to be advertized by the receiving entity.
(type: bool)
def __init__(self, xs, required=False): (source)
def initialize(self): (source)

Initiate the initialization.

Checks if the receiving entity advertizes the stream feature. If it does, the initialization is started. If it is not advertized, and the required instance variable is True, it raises FeatureNotAdvertized. Otherwise, the initialization silently succeeds.

API Documentation for Twisted, generated by pydoctor 20.12.1 at 2021-02-28 19:53:36.