Saros
Distributed Collaborative Editing and Distributed Party Programming
|
Inherits Serializable.
Public Member Functions | |
JID (String jid) | |
JID (String name, String domain) | |
boolean | isValid () |
String | getName () |
String | getBase () |
String | getDomain () |
String | getResource () |
boolean | isBareJID () |
boolean | isResourceQualifiedJID () |
JID | getBareJID () |
String | getRAW () |
boolean | equals (Object obj) |
boolean | strictlyEquals (JID other) |
int | hashCode () |
String | toString () |
Static Public Member Functions | |
static JID | createFromServicePerspective (String servicePerspectiveJID) |
static boolean | isValid (JID jid) |
A JID which is used to identify the users of the XMPP network.
A JID is a value object, i.e. it is immutable!
de.fu_berlin.inf.dpp.net.xmpp.JID.JID | ( | String | jid | ) |
de.fu_berlin.inf.dpp.net.xmpp.JID.JID | ( | String | name, |
String | domain | ||
) |
static JID de.fu_berlin.inf.dpp.net.xmpp.JID.createFromServicePerspective | ( | String | servicePerspectiveJID | ) | [static] |
Creates the client JID on the base of a service perspective JID as explained in XEP-0045.
Example: A MultiUserChat participant has - from the perspective of the MultiUserChat itself - the JID saros128280129@conference.jabber.ccc.de/bkahlert.org/Saros. This method would return the JID representing bkahlert@jabber.org/Saros.
servicePerspectiveJID | the XMPP address from the perspective of the service |
boolean de.fu_berlin.inf.dpp.net.xmpp.JID.equals | ( | Object | obj | ) |
true
if the IDs have the same user and domain. Resource is ignored. JID de.fu_berlin.inf.dpp.net.xmpp.JID.getBareJID | ( | ) |
Returns the JID without any resource qualifier.
String de.fu_berlin.inf.dpp.net.xmpp.JID.getBase | ( | ) |
String de.fu_berlin.inf.dpp.net.xmpp.JID.getDomain | ( | ) |
String de.fu_berlin.inf.dpp.net.xmpp.JID.getName | ( | ) |
String de.fu_berlin.inf.dpp.net.xmpp.JID.getRAW | ( | ) |
Returns the unmodified JID this object was constructed with
String de.fu_berlin.inf.dpp.net.xmpp.JID.getResource | ( | ) |
int de.fu_berlin.inf.dpp.net.xmpp.JID.hashCode | ( | ) |
boolean de.fu_berlin.inf.dpp.net.xmpp.JID.isBareJID | ( | ) |
Returns true if this JID does not have a resource part.
boolean de.fu_berlin.inf.dpp.net.xmpp.JID.isResourceQualifiedJID | ( | ) |
Returns true if this JID does have a resource part.
static boolean de.fu_berlin.inf.dpp.net.xmpp.JID.isValid | ( | JID | jid | ) | [static] |
boolean de.fu_berlin.inf.dpp.net.xmpp.JID.isValid | ( | ) |
Checks whether the base portion is correctly formatted.
boolean de.fu_berlin.inf.dpp.net.xmpp.JID.strictlyEquals | ( | JID | other | ) |
String de.fu_berlin.inf.dpp.net.xmpp.JID.toString | ( | ) |