Package pyxmpp2 :: Module binding :: Class ResourceBindingPayload
[hide private]

Class ResourceBindingPayload


Resource binding <iq/> stanza payload.
Nested Classes [hide private]

Inherited from interfaces.StanzaPayload: __metaclass__

Instance Methods [hide private]
 
__init__(self, jid=None, resource=None)
x.__init__(...) initializes x; see help(type(x)) for signature
ElementTree.Element
as_xml(self)
Return the XML representation of the payload.

Inherited from interfaces.StanzaPayload: copy

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Class Methods [hide private]
 
from_xml(cls, element)
Create a cls instance from an XML element.
Class Variables [hide private]
  __abstractmethods__ = frozenset([])
  _pyxmpp_payload_element_name = [u'{urn:ietf:params:xml:ns:xmpp...
Instance Variables [hide private]
JID jid
content of the <jid/> child element
unicode resource
content of the <resource/> child element
Properties [hide private]

Inherited from interfaces.StanzaPayload: handler_key

Inherited from object: __class__

Method Details [hide private]

__init__(self, jid=None, resource=None)
(Constructor)

 
x.__init__(...) initializes x; see help(type(x)) for signature
Overrides: object.__init__
(inherited documentation)

from_xml(cls, element)
Class Method

 
Create a cls instance from an XML element.
Parameters:
  • element - the XML element
Overrides: interfaces.StanzaPayload.from_xml
(inherited documentation)

as_xml(self)

 
Return the XML representation of the payload.
Returns: ElementTree.Element
Overrides: interfaces.StanzaPayload.as_xml
(inherited documentation)

Class Variable Details [hide private]

_pyxmpp_payload_element_name

Value:
[u'{urn:ietf:params:xml:ns:xmpp-bind}bind']