org.eclipse.ecf.provider.xmpp.identity
Class XMPPID
java.lang.Object
org.eclipse.ecf.core.identity.BaseID
org.eclipse.ecf.provider.xmpp.identity.XMPPID
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Comparable, java.security.Principal, org.eclipse.core.runtime.IAdaptable, ID
- Direct Known Subclasses:
- XMPPSID
public class XMPPID
- extends BaseID
- See Also:
- Serialized Form
Constructor Summary |
XMPPID(Namespace namespace,
java.lang.String unamehost)
|
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
USER_HOST_DELIMITER
public static final char USER_HOST_DELIMITER
- See Also:
- Constant Field Values
PORT_DELIMITER
public static final char PORT_DELIMITER
- See Also:
- Constant Field Values
PATH_DELIMITER
public static final java.lang.String PATH_DELIMITER
- See Also:
- Constant Field Values
escapeTable
protected static java.util.Hashtable escapeTable
username
protected java.lang.String username
hostname
protected java.lang.String hostname
resourcename
protected java.lang.String resourcename
port
protected int port
XMPPID
public XMPPID(Namespace namespace,
java.lang.String unamehost)
throws java.net.URISyntaxException
- Throws:
java.net.URISyntaxException
unfixEscapeInNode
public static java.lang.String unfixEscapeInNode(java.lang.String node)
namespaceCompareTo
protected int namespaceCompareTo(BaseID o)
- Description copied from class:
BaseID
- Called by
Namespace.getCompareToForObject(BaseID, BaseID)
.
- Specified by:
namespaceCompareTo
in class BaseID
- Parameters:
o
- the other ID to compare to. Will not be null
.
- Returns:
- the appropriate value as per
Comparable
contract.
namespaceEquals
protected boolean namespaceEquals(BaseID o)
- Description copied from class:
BaseID
- Called by
Namespace.testIDEquals(BaseID, BaseID)
.
- Specified by:
namespaceEquals
in class BaseID
- Parameters:
o
- the other ID to test against. May be null
.
- Returns:
true
if this ID is equal to the given ID.
false
otherwise.
namespaceGetName
protected java.lang.String namespaceGetName()
- Description copied from class:
BaseID
- Called by
Namespace.getNameForID(BaseID)
.
- Specified by:
namespaceGetName
in class BaseID
- Returns:
- String name for this ID. Must not be
null
. Value
returned should be unique within this Namespace.
namespaceHashCode
protected int namespaceHashCode()
- Description copied from class:
BaseID
- Called by
Namespace.getHashCodeForID(BaseID)
.
- Specified by:
namespaceHashCode
in class BaseID
- Returns:
- int hashCode for this ID. Returned value must be unique within
this process.
getNodename
public java.lang.String getNodename()
namespaceToExternalForm
protected java.lang.String namespaceToExternalForm()
- Description copied from class:
BaseID
- Called by
Namespace.toExternalForm(BaseID)
.
- Overrides:
namespaceToExternalForm
in class BaseID
- Returns:
- String that represents this ID. Default implementation is to
return
namespace.getScheme() + Namespace.SCHEME_SEPARATOR + namespaceGetName();
getUsername
public java.lang.String getUsername()
getHostname
public java.lang.String getHostname()
getResourceName
public java.lang.String getResourceName()
setResourceName
public void setResourceName(java.lang.String resourceName)
getPort
public int getPort()
getUsernameAtHost
public java.lang.String getUsernameAtHost()
getFQName
public java.lang.String getFQName()
toString
public java.lang.String toString()
- Specified by:
toString
in interface java.security.Principal
- Overrides:
toString
in class java.lang.Object
getAdapter
public java.lang.Object getAdapter(java.lang.Class clazz)
- Specified by:
getAdapter
in interface org.eclipse.core.runtime.IAdaptable
- Overrides:
getAdapter
in class BaseID