|
JSJaC | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Object | +--JSJaCJID
JSJaCJID models xmpp jid objects
Defined in JSJaCJID.js
Constructor Summary | |
JSJaCJID(<Object> jid)
Creates a new JSJaCJID object |
Method Summary | |
JSJaCJID
|
clone()
creates a copy of this JSJaCJID object |
String
|
getDomain()
Gets the domain part of the jid |
String
|
getNode()
Gets the node part of the jid |
String
|
getResource()
Gets the resource part of the jid |
Boolean
|
isEntity(<String> jid)
Compares two jids if they belong to the same entity (i.e. |
JSJaCJID
|
removeResource()
Removes the resource part of the jid |
JSJaCJID
|
setDomain(<String> domain)
Sets the domain part of the jid |
JSJaCJID
|
setNode(<String> node)
Sets the node part of the jid |
JSJaCJID
|
setResource(<String> resource)
Sets the resource part of the jid |
String
|
toString()
The string representation of the full jid |
Constructor Detail |
JSJaCJID(<Object> jid)
jid
- jid may be either of type String or a JID represented by JSON with fields 'node', 'domain' and 'resource'
Method Detail |
JSJaCJID clone()
String getDomain()
String getNode()
String getResource()
Boolean isEntity(<String> jid)
jid
- a jid as string or JSJaCJID object
JSJaCJID removeResource()
JSJaCJID setDomain(<String> domain)
domain
- Name of the domain
JSJaCJID setNode(<String> node)
node
- Name of the node
JSJaCJID setResource(<String> resource)
resource
- Name of the resource
String toString()
|
JSJaC | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |