class twisted.words.protocols.jabber.jid.JID: (source)
Represents a stringprep'd Jabber ID.
JID objects are hashable so they can be used in sets and as keys in dictionaries.
| Method | __init__ | Undocumented |
| Instance Variable | user | Undocumented |
| Instance Variable | host | Undocumented |
| Instance Variable | resource | Undocumented |
| Method | userhost | Extract the bare JID as a unicode string. |
| Method | userhostJID | Extract the bare JID. |
| Method | full | Return the string representation of this JID. |
| Method | __eq__ | Equality comparison. |
| Method | __hash__ | Calculate hash. |
| Method | __unicode__ | Get unicode representation. |
| Method | __repr__ | Get object representation. |
Extract the bare JID as a unicode string.
A bare JID does not have a resource part, so this returns either user@host or just host.
| Returns | Undocumented (type: str) | |
Extract the bare JID.
A bare JID does not have a resource part, so this returns a JID object representing either user@host or just host.
If the object this method is called upon doesn't have a resource set, it will return itself. Otherwise, the bare JID object will be created, interned using internJID.
| Returns | Undocumented (type: JID) | |
Return the string representation of this JID.
| Returns | Undocumented (type: str) | |