class documentation

class JabberServiceHarness(component.Service):

View In Hierarchy

Undocumented

Method __init__ Undocumented
Method componentConnected Parent component has established a connection.
Method componentDisconnected Parent component has lost the connection to the Jabber server.
Method transportConnected Parent component has established a connection over the underlying transport.
Instance Variable componentConnectedFlag Undocumented
Instance Variable componentDisconnectedFlag Undocumented
Instance Variable transportConnectedFlag Undocumented

Inherited from Service:

Method send Send data over service parent's XML stream.

Inherited from Service (via Service):

Method __getstate__ Undocumented
Method disownServiceParent Use this API to remove an IService from an IServiceCollection.
Method privilegedStartService Do preparation work for starting the service.
Method setName Set the name of the service.
Method setServiceParent Set the parent of the service. This method is responsible for setting the parent attribute on this service (the child service).
Method startService Start the service.
Method stopService Stop the service.
Instance Variable name A str which is the name of the service or None.
Instance Variable parent An IServiceCollection which is the parent or None.
Instance Variable running A boolean which indicates whether the service is running.
def __init__(self):

Undocumented

def componentConnected(self, xmlstream):

Parent component has established a connection.

At this point, authentication was successful, and XML stanzas can be exchanged over the XML stream xs. This method can be used to setup observers for incoming stanzas.

Parameters
xmlstreamUndocumented
xs:xmlstream.XmlStreamXML Stream that represents the established connection.
def componentDisconnected(self):

Parent component has lost the connection to the Jabber server.

Subsequent use of self.parent.send will result in data being queued until a new connection has been established.

def transportConnected(self, xmlstream):

Parent component has established a connection over the underlying transport.

At this point, no traffic has been exchanged over the XML stream. This method can be used to change properties of the XML Stream (in xs), the service manager or it's authenticator prior to stream initialization (including authentication).

componentConnectedFlag: bool =

Undocumented

componentDisconnectedFlag: bool =

Undocumented

transportConnectedFlag: bool =

Undocumented