|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.eclipse.ecf.core.identity.BaseID org.eclipse.ecf.provider.xmpp.identity.XMPPID
public class XMPPID
Field Summary | |
---|---|
protected static java.util.Hashtable |
escapeTable
|
protected java.lang.String |
hostname
|
static java.lang.String |
PATH_DELIMITER
|
protected int |
port
|
static char |
PORT_DELIMITER
|
protected java.lang.String |
resourcename
|
static char |
USER_HOST_DELIMITER
|
protected java.lang.String |
username
|
Fields inherited from class org.eclipse.ecf.core.identity.BaseID |
---|
namespace |
Constructor Summary | |
---|---|
XMPPID(Namespace namespace,
java.lang.String unamehost)
|
Method Summary | |
---|---|
java.lang.Object |
getAdapter(java.lang.Class clazz)
|
java.lang.String |
getFQName()
Get the fully qualified name. |
java.lang.String |
getHostname()
Get hostname for this IChatID |
java.lang.String |
getNodename()
|
int |
getPort()
|
java.lang.String |
getResourceName()
Get resource name. |
java.lang.String |
getUsername()
Get username for this IChatID |
java.lang.String |
getUsernameAtHost()
|
protected int |
namespaceCompareTo(BaseID o)
Called by Namespace.getCompareToForObject(BaseID, BaseID) . |
protected boolean |
namespaceEquals(BaseID o)
Called by Namespace.testIDEquals(BaseID, BaseID) . |
protected java.lang.String |
namespaceGetName()
Called by Namespace.getNameForID(BaseID) . |
protected int |
namespaceHashCode()
Called by Namespace.getHashCodeForID(BaseID) . |
protected java.lang.String |
namespaceToExternalForm()
Called by Namespace.toExternalForm(BaseID) . |
void |
setResourceName(java.lang.String resourceName)
|
java.lang.String |
toString()
|
static java.lang.String |
unfixEscapeInNode(java.lang.String node)
|
Methods inherited from class org.eclipse.ecf.core.identity.BaseID |
---|
compareTo, equals, getName, getNamespace, hashCode, toExternalForm |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final char USER_HOST_DELIMITER
public static final char PORT_DELIMITER
public static final java.lang.String PATH_DELIMITER
protected static java.util.Hashtable escapeTable
protected java.lang.String username
protected java.lang.String hostname
protected java.lang.String resourcename
protected int port
Constructor Detail |
---|
public XMPPID(Namespace namespace, java.lang.String unamehost) throws java.net.URISyntaxException
java.net.URISyntaxException
Method Detail |
---|
public static java.lang.String unfixEscapeInNode(java.lang.String node)
protected int namespaceCompareTo(BaseID o)
BaseID
Namespace.getCompareToForObject(BaseID, BaseID)
.
namespaceCompareTo
in class BaseID
o
- the other ID to compare to. Will not be null
.
Comparable
contract.protected boolean namespaceEquals(BaseID o)
BaseID
Namespace.testIDEquals(BaseID, BaseID)
.
namespaceEquals
in class BaseID
o
- the other ID to test against. May be null
.
true
if this ID is equal to the given ID.
false
otherwise.protected java.lang.String namespaceGetName()
BaseID
Namespace.getNameForID(BaseID)
.
namespaceGetName
in class BaseID
null
. Value
returned should be unique within this Namespace.protected int namespaceHashCode()
BaseID
Namespace.getHashCodeForID(BaseID)
.
namespaceHashCode
in class BaseID
public java.lang.String getNodename()
protected java.lang.String namespaceToExternalForm()
BaseID
Namespace.toExternalForm(BaseID)
.
namespaceToExternalForm
in class BaseID
namespace.getScheme() + Namespace.SCHEME_SEPARATOR + namespaceGetName();
public java.lang.String getUsername()
IChatID
getUsername
in interface IChatID
null
.public java.lang.String getHostname()
IChatID
getHostname
in interface IChatID
null
.public java.lang.String getResourceName()
IFQID
null
.
getResourceName
in interface IFQID
null
.public void setResourceName(java.lang.String resourceName)
public int getPort()
public java.lang.String getUsernameAtHost()
public java.lang.String getFQName()
IFQID
null
. The result
may be the same as ID.getName(), or may include additional information. The
result must be longer than or equal to ID.getName().
getFQName
in interface IFQID
null
. The result
may be the same as ID.getName(), or may include additional information. The
result must be longer than or equal to ID.getName().public java.lang.String toString()
toString
in interface java.security.Principal
toString
in class java.lang.Object
public java.lang.Object getAdapter(java.lang.Class clazz)
getAdapter
in interface org.eclipse.core.runtime.IAdaptable
getAdapter
in class BaseID
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |