|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.echomine.jabber.JID
public class JID
Contains the JID resource. It also knows how to parse the information or output it in the JID compliant format. This is mainly used to generate or retrieve parts of the JID in a easy way. you simply pass in the JID string, and then retrieve whatever you like.
Constructor Summary | |
---|---|
JID(java.lang.String jid)
takes in a JID and then parses it into different parts. |
|
JID(java.lang.String node,
java.lang.String host,
java.lang.String resource)
takes in a set of information to create the JID object that can be use to convert into a JID string |
Method Summary | |
---|---|
boolean |
equals(java.lang.Object obj)
|
java.lang.String |
getHost()
|
java.lang.String |
getJIDWithoutResource()
retrieves the node@domain part of the JID. |
java.lang.String |
getNode()
|
java.lang.String |
getResource()
|
java.lang.String |
getUsername()
this is the same as getNode(). |
int |
hashCode()
Uses the full JID string as the hash code |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public JID(java.lang.String jid) throws ParseException
ParseException
- if the jid does not conform to the formatpublic JID(java.lang.String node, java.lang.String host, java.lang.String resource)
node
- the name of the node or user, requiredhost
- the Jabber server name, requiredresource
- the resource used, can be null to specify noneMethod Detail |
---|
public java.lang.String getNode()
public java.lang.String getHost()
public java.lang.String getResource()
public java.lang.String getUsername()
public java.lang.String getJIDWithoutResource()
public java.lang.String toString()
toString
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |