| SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Jid models xmpp jid objects
| Constructor Summary | |
Xmpp4Js.Jid(jid)
Creates a new Jid object |
|
| Method Summary | |
|
equals(jid, withoutResource)
Compare two JIDs for equality |
|
getDomain()
Gets the domain part of the jid |
|
getNode()
Gets the node part of the jid |
|
getResource()
Gets the resource part of the jid |
|
removeResource()
Removes the resource part of the jid |
|
setDomain(domain)
Sets the domain part of the jid |
|
setNode(node)
Sets the node part of the jid |
|
setResource(resource)
Sets the resource part of the jid |
|
toString()
The string representation of the full jid |
|
withoutResource()
Creates a copy of Jid and removes the resource. |
| Constructor Detail |
Xmpp4Js.Jid(jid)
Object jid
- jid may be either of type String or a JID represented
by JSON with fields 'node', 'domain' and 'resource'
| Method Detail |
equals(jid, withoutResource)
Xmpp4Js.Jid or String jid
- The jid to compare to
boolean withoutResource
- Remove resource before comparing
getDomain()
A string representing the domain name
getNode()
A string representing the node name
getResource()
A string representing the resource
removeResource()
This object
setDomain(domain)
String domain
- Name of the domain
This object
Xmpp4Js.JidInvalidException Thrown if domain name contains invalid
chars or is empty
setNode(node)
String node
- Name of the node
This object
Xmpp4Js.JidInvalidException Thrown if node name contains invalid chars
setResource(resource)
String resource
- Name of the resource
This object
toString()
A string representing the jid
withoutResource()
This object