Helper class to create stanzas as bridge.Element instance.
name stanza element name
from_jid JID emiting the stanza
to_jid JID targeted by the stanza
type stanza type (e.g. get, set, result)
stanza_id stanza identifier
lang xml:lang value
-
static error_iq(from_jid=None, to_jid=None, stanza_id=None)
- Helper method that generates a headstock.lib.stanza.Stanza instance
of a IQ stanza with a error type.
-
static get_iq(from_jid=None, to_jid=None, stanza_id=None)
- Helper method that generates a headstock.lib.stanza.Stanza instance
of a IQ stanza with a get type.
-
static result_iq(from_jid=None, to_jid=None, stanza_id=None)
- Helper method that generates a headstock.lib.stanza.Stanza instance
of a IQ stanza with a result type.
-
static set_iq(from_jid=None, to_jid=None, stanza_id=None)
- Helper method that generates a headstock.lib.stanza.Stanza instance
of a IQ stanza with a set type.
-
swap_jids()
- Swap JID internally
-
static to_element(e, parent=None)
Creates and returns a bridge.Element instance from a
headstock.lib.stanza.Stanza instance.
e headstock.lib.stanza.Stanza instance
parent bridge.Element instance to which
attached the generated element.