Is plugged into NonBlockingClient but can be replugged to restart handled
stream headers (used by SASL f.e.).
|
|
|
|
|
dumpHandlers(self)
Return set of user-registered callbacks in it's internal format. Used
within the library to carry user handlers set over Dispatcher replugins |
source code
|
|
|
restoreHandlers(self,
handlers)
Restore user-registered callbacks structure from dump previously obtained
via dumpHandlers. Used within the library to carry user handlers set over
Dispatcher replugins. |
source code
|
|
|
_init(self)
Register default namespaces/protocols/handlers. Used internally |
source code
|
|
|
plugin(self,
owner)
Plug the Dispatcher instance into Client class instance and send initial
stream header. Used internally |
source code
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
RegisterHandler(self,
name,
handler,
typ='
' ,
ns='
' ,
xmlns=None,
makefirst=False,
system=False)
Register user callback as stanzas handler of declared type |
source code
|
|
|
RegisterHandlerOnce(self,
name,
handler,
typ='
' ,
ns='
' ,
xmlns=None,
makefirst=0,
system=0)
Unregister handler after first call (not implemented yet) |
source code
|
|
|
UnregisterHandler(self,
name,
handler,
typ='
' ,
ns='
' ,
xmlns=None)
Unregister handler. "typ" and "ns" must be specified exactly the same as
with registering. |
source code
|
|
|
RegisterDefaultHandler(self,
handler)
Specify the handler that will be used if no NodeProcessed exception were
raised. This is returnStanzaHandler by default. |
source code
|
|
|
RegisterEventHandler(self,
handler)
Register handler that will process events. F.e. "FILERECEIVED" event. See
common/connection: _event_dispatcher() |
source code
|
|
|
|
|
|
|
|
|
|
|
dispatch(self,
stanza,
session=None,
direct=0)
Main procedure that performs XMPP stanza recognition and calling
apppropriate handlers for it. Called by simplexml |
source code
|
|
|
|
|
SendAndWaitForResponse(self,
stanza,
timeout=None,
func=None,
args=None)
Send stanza and wait for recipient's response to it. Will call transports
on_timeout callback if response is not retrieved in time |
source code
|
|
|
SendAndCallForResponse(self,
stanza,
func=None,
args=None)
Put stanza on the wire and call back when recipient replies. Additional
callback arguments can be specified in args |
source code
|
|
|
send(self,
stanza,
now=False)
Wrap transports send method when plugged into NonBlockingClient. Makes
sure stanzas get ID and from tag. |
source code
|
|
Inherited from plugin.PlugIn :
PlugIn ,
PlugOut
|