Jabber IDs (JID)

1.0 Documentation

«  Exceptions   ::   Contents   ::   Stanza Objects  »

Jabber IDs (JID)

class sleekxmpp.xmlstream.jid.JID(jid)[source]

A representation of a Jabber ID, or JID.

Each JID may have three components: a user, a domain, and an optional resource. For example: user@domain/resource

When a resource is not used, the JID is called a bare JID. The JID is a full JID otherwise.

JID Properties:
jid:Alias for full.
full:The value of the full JID.
bare:The value of the bare JID.
user:The username portion of the JID.
domain:The domain name portion of the JID.
server:Alias for domain.
resource:The resource portion of the JID.
Parameters:jid (string) – A string of the form '[user@]domain[/resource]'.
regenerate()[source]

Generate a new JID based on current values, useful after editing.

reset(jid)[source]

Start fresh from a new JID string.

Parameters:jid (string) – A string of the form '[user@]domain[/resource]'.

«  Exceptions   ::   Contents   ::   Stanza Objects  »

From &yet