class documentation

class XMPPComponentServerFactory(xmlstream.XmlStreamServerFactory): (source)

View In Hierarchy

XMPP Component Server factory.

This factory accepts XMPP external component connections and makes the router service route traffic for a component's bound domain to that component.

Present Since
8.2
Method __init__ Undocumented
Method on​Authenticated Called when a component has successfully authenticated.
Method on​Connection​Lost Undocumented
Method on​Connection​Made Called when a component connection was made.
Method on​Error Undocumented
Class Variable log​Traffic Undocumented
Instance Variable router Undocumented
Instance Variable secret Undocumented
Instance Variable serial Undocumented

Inherited from XmlStreamServerFactory:

Method build​Protocol Create an instance of XmlStream.
Instance Variable authenticator​Factory Factory callable that takes no arguments, to create a fresh authenticator to be associated with the XmlStream.

Inherited from BootstrapMixin (via XmlStreamServerFactory):

Method add​Bootstrap Add a bootstrap event handler.
Method install​Bootstraps Install registered bootstrap observers.
Method remove​Bootstrap Remove a bootstrap event handler.
Instance Variable bootstraps The list of registered bootstrap event observers.

Inherited from Factory (via XmlStreamServerFactory, ServerFactory):

Class Method for​Protocol Create a factory for the given protocol.
Method do​Start Make sure startFactory is called.
Method do​Stop Make sure stopFactory is called.
Method log​Prefix Describe this factory for log messages.
Method start​Factory This will be called before I begin listening on a Port or Connector.
Method stop​Factory This will be called before I stop listening on all Ports/Connectors.
Class Variable noisy Undocumented
Class Variable protocol Undocumented
Instance Variable num​Ports Undocumented
def __init__(self, router, secret='secret'): (source)
def onAuthenticated(self, xs): (source)

Called when a component has successfully authenticated.

Add the component to the routing table and establish a handler for a closed connection.

def onConnectionLost(self, destination, xs, reason): (source)

Undocumented

def onConnectionMade(self, xs): (source)

Called when a component connection was made.

This enables traffic debugging on incoming streams.

def onError(self, reason): (source)

Undocumented

logTraffic: bool = (source)

Undocumented

router = (source)

Undocumented

secret = (source)

Undocumented

serial: int = (source)

Undocumented