sdt.ext.implementations.export
Class PartyID

java.lang.Object
  extended by 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"))
 
Method Summary
 boolean eq(PartyURI other)
           
 DeviceEndPointURI getDeviceEndpoint()
           
 PersonURI getNameURI()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

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
Method Detail

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