Protocol implementation for XMPP Service Discovery.

This handler will listen to XMPP service discovery requests and query the other handlers in parent (see twisted.words.protocols.jabber.xmlstream.XMPPHandlerCollection) for their identities, features and items according to IDisco.

Method connectionInitialized The XML stream has been initialized.
Method info Inspect all sibling protocol handlers for disco info.
Method items Inspect all sibling protocol handlers for disco items.
Method _onDiscoInfo Called for incoming disco info requests.
Method _onDiscoItems Called for incoming disco items requests.
Method _gatherResults Gather results from a list of deferreds.

Inherited from XMPPHandler:

Method __init__ Undocumented
Method setHandlerParent Set the parent of the handler.
Method disownHandlerParent Remove the parent of the handler.
Method makeConnection A connection over the underlying transport of the XML stream has been established.
Method connectionMade Called after a connection has been established.
Method connectionLost The XML stream has been closed.
Method send Send data over the managed XML stream.
Method request Send an IQ request and track the response.

Inherited from IQHandlerMixin:

Class Variable iqHandlers Mapping from XPath queries (as a string) to the method name that will handle requests that match the query. (type: dict)
Method handleRequest Find a handler and wrap the call for sending a response stanza.
def connectionInitialized(self): (source)

The XML stream has been initialized.

Can be overridden to perform work after stream initialization, e.g. to set up observers and start exchanging XML stanzas.

def _onDiscoInfo(self, iq): (source)

Called for incoming disco info requests.

ParametersiqThe request iq element. (type: Element)
def _onDiscoItems(self, iq): (source)

Called for incoming disco items requests.

ParametersiqThe request iq element. (type: Element)
def _gatherResults(self, deferredList): (source)

Gather results from a list of deferreds.

Similar to defer.gatherResults, but flattens the returned results, consumes errors after the first one and fires the errback of the returned deferred with the failure of the first deferred that fires its errback.

ParametersdeferredListList of deferreds for which the results should be gathered. (type: list)
ReturnsDeferred that fires with a list of gathered results. (type: defer.Deferred)
def info(self, requestor, target, nodeIdentifier): (source)

Inspect all sibling protocol handlers for disco info.

Calls the getDiscoInfo method on all child handlers of the parent, that provide IDisco.

ParametersrequestorThe entity that sent the request. (type: JID)
targetThe entity the request was sent to. (type: JID)
nodeIdentifierThe optional node being queried, or ''. (type: unicode)
ReturnsDeferred with the gathered results from sibling handlers. (type: defer.Deferred)
def items(self, requestor, target, nodeIdentifier): (source)

Inspect all sibling protocol handlers for disco items.

Calls the getDiscoItems method on all child handlers of the parent, that provide IDisco.

ParametersrequestorThe entity that sent the request. (type: JID)
targetThe entity the request was sent to. (type: JID)
nodeIdentifierThe optional node being queried, or ''. (type: unicode)
ReturnsDeferred with the gathered results from sibling handlers. (type: defer.Deferred)
API Documentation for wokkel, generated by pydoctor at 2018-12-06 14:45:46.