|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--jain.protocol.ip.sip.NameAddress
This class represents a user's display name and address. A NameAddress contains an optional display name for the user, which can be displayed to an end-user, and the URI (most likely a SipURL) that is the user's address.
URI,
SipURL| Constructor Summary | |
NameAddress(java.lang.String displayName,
URI address)
Creates a NameAddress based on given diaplay name and address |
|
NameAddress(URI address)
Creates a NameAddress based on given address |
|
| Method Summary | |
java.lang.Object |
clone()
Creates and returns a copy of NameAddress |
boolean |
equals(NameAddress nameAddress)
Indicates whether some other NameAddress is "equal to" this one |
URI |
getAddress()
Gets address of NameAddress |
java.lang.String |
getDisplayName()
Gets display name of NameAddress |
boolean |
hasDisplayName()
Returns boolean value to indicate if NameAddress has a display name |
void |
removeDisplayName()
Removes display name from NameAddress |
void |
setAddress(URI address)
Sets address of NameAddress |
void |
setDisplayName(java.lang.String displayName)
Sets display name of Header |
java.lang.String |
toString()
Gets string representation of NameAddress |
| Methods inherited from class java.lang.Object |
equals,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
| Constructor Detail |
public NameAddress(URI address)
throws java.lang.IllegalArgumentException
address - address URI
public NameAddress(java.lang.String displayName,
URI address)
throws java.lang.IllegalArgumentException
displayName - display nameaddress - address URI| Method Detail |
public java.lang.String getDisplayName()
throws ParameterNotSetException
public void setDisplayName(java.lang.String displayName)
throws java.lang.IllegalArgumentException
displayName - display namepublic void removeDisplayName()
public boolean hasDisplayName()
public URI getAddress()
public void setAddress(URI address)
throws java.lang.IllegalArgumentException
address - addresspublic java.lang.String toString()
public java.lang.Object clone()
public boolean equals(NameAddress nameAddress)
nameAddress - the NameAddress with which to compare
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Copyright - 2000 Sun Microsystems