sdt.ext.implementations.export
Class PartyID
java.lang.Object
sdt.ext.implementations.export.PartyID
- All Implemented Interfaces:
- java.io.Serializable, PartyURI
public class PartyID
- extends java.lang.Object
- implements PartyURI
A partyID represents a pair: (person-name, device-endpoint). A person name is just a string;
a device endpoint is one of "tel:" (e.g., "tel:19085824421") for phone numbers,
and "sip:" (e.g., "sip:kedar@sip.research.bell-labs.com") for SIP addresses.
- See Also:
- Serialized Form
|
Constructor Summary |
PartyID(java.lang.String n,
java.lang.String d)
example: PartyID("Kedar", "sip:kedar@sip.research.bell-labs.com") |
PartyID(java.lang.String n,
java.net.URI d)
example: PartyID("Kedar", new URI("sip:kedar@sip.research.bell-labs.com")) |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
PartyID
public PartyID(java.lang.String n,
java.lang.String d)
throws java.lang.Exception
- example: PartyID("Kedar", "sip:kedar@sip.research.bell-labs.com")
- Throws:
java.lang.Exception
PartyID
public PartyID(java.lang.String n,
java.net.URI d)
throws java.lang.Exception
- example: PartyID("Kedar", new URI("sip:kedar@sip.research.bell-labs.com"))
- Throws:
java.lang.Exception
getDeviceEndpoint
public DeviceEndPointURI getDeviceEndpoint()
- Specified by:
getDeviceEndpoint in interface PartyURI
getNameURI
public PersonURI getNameURI()
- Specified by:
getNameURI in interface PartyURI
eq
public boolean eq(PartyURI other)
throws java.net.URISyntaxException
- Specified by:
eq in interface PartyURI
- Throws:
java.net.URISyntaxException
toString
public java.lang.String toString()
- Overrides:
toString in class java.lang.Object