Universal stanza handler/router class.
Provides facilities to set up custom handlers for various types of stanzas.
|
|
bool
|
_process_handler_result(self,
response)
Examines out the response returned by a stanza handler and sends all
stanzas provided. |
|
|
|
|
|
process_iq(self,
stanza)
Process IQ stanza received. |
|
|
|
_get_iq_handler(self,
iq_type,
payload)
Get an <iq/> handler for given iq type and payload. |
|
|
|
__try_handlers(self,
handler_list,
stanza,
stanza_type=None)
Search the handler list for handlers matching
given stanza type and payload namespace. |
|
|
|
|
|
|
|
route_stanza(self,
stanza)
Process stanza not addressed to us. |
|
|
|
|
|
check_to(self,
to_jid)
Check "to" attribute of received stream header. |
|
|
|
set_response_handlers(self,
stanza,
res_handler,
err_handler,
timeout_handler=None,
timeout=None)
Set response handler for an IQ "get" or "set" stanza. |
|
|
|
_set_response_handlers(self,
stanza,
res_handler,
err_handler,
timeout_handler=None,
timeout=None)
Same as set_response_handlers but assume self.lock is
acquired. |
|
|
|
setup_stanza_handlers(self,
handler_objects,
usage_restriction)
Install stanza handlers provided by handler_objects |
|
|
|
fix_in_stanza(self,
stanza)
Modify incoming stanza before processing it. |
|
|
|
fix_out_stanza(self,
stanza)
Modify outgoing stanza before sending into the stream. |
|
|
|
send(self,
stanza)
Send a stanza somwhere. |
|
|
Inherited from object :
__delattr__ ,
__format__ ,
__getattribute__ ,
__hash__ ,
__new__ ,
__reduce__ ,
__reduce_ex__ ,
__repr__ ,
__setattr__ ,
__sizeof__ ,
__str__ ,
__subclasshook__
|