Home | Trees | Index | Help |
---|
Package xmpp :: Module protocol :: Class JID |
|
Method Summary | |
---|---|
Constructor. | |
Compare the JID to another instance or to string for equality. | |
Produce hash of the JID, Allows to use JID objects as keys of the dictionary. | |
Compare the JID to another instance or to string for non-equality. | |
Serialise JID into string. | |
Compare the node and domain parts of the JID's for equality. | |
Return the domain part of the JID | |
Return the node part of the JID | |
Return the resource part of the JID | |
Return the bare representation of JID. | |
Set the domain part of the JID to new value. | |
Set the node part of the JID to new value. | |
Set the resource part of the JID to new value. |
Method Details |
---|
__init__(self,
jid=None,
node='',
domain='',
resource='')
Constructor. JID can be specified as string (jid argument) or as
separate parts. Examples: JID('node@domain/resource')
JID(node='node',domain='domain.org')
|
__eq__(self,
other)
Compare the JID to another instance or to string for equality.
|
__hash__(self)
Produce hash of the JID, Allows to use JID objects as keys of the
dictionary.
|
__ne__(self, other)Compare the JID to another instance or to string for non-equality. |
__str__(self,
wresource=1)
Serialise JID into string.
|
bareMatch(self, other)Compare the node and domain parts of the JID's for equality. |
getDomain(self)Return the domain part of the JID |
getNode(self)Return the node part of the JID |
getResource(self)Return the resource part of the JID |
getStripped(self)Return the bare representation of JID. I.e. string value w/o resource. |
setDomain(self, domain)Set the domain part of the JID to new value. |
setNode(self, node)Set the node part of the JID to new value. Specify None to remove the node part. |
setResource(self, resource)Set the resource part of the JID to new value. Specify None to remove the resource part. |
Home | Trees | Index | Help |
---|
Generated by Epydoc 2.1 on Thu Oct 5 23:57:42 2006 | http://epydoc.sf.net |