|
NIST SIP Parser and Stack (v1.2) API | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This interface represents a user's display name and URI address. The display
name of an address is optional but if included can be displayed to an end-user.
The address URI (most likely a SipURI) is the user's address. For example a
'To' address of To: Bob sip:duke@jcp.org
would have a display
name attribute of Bob
and an address of
sip:duke@jcp.org
.
SipURI
,
TelURL
Method Summary | |
boolean |
equals(Object obj)
Indicates whether some other Object is "equal to" this Address. |
String |
getDisplayName()
Gets the display name of this Address, or null if the attribute is not set. |
URI |
getURI()
Returns the URI of this Address. |
boolean |
isWildcard()
This determines if this address is a wildcard address. |
void |
setDisplayName(String displayName)
Sets the display name of the Address. |
void |
setURI(URI uri)
Sets the URI of this Address. |
String |
toString()
Returns a string representation of this Address. |
Method Detail |
public void setDisplayName(String displayName) throws ParseException
displayName
- - the new string value of the display name.
ParseException
- which signals that an error has been reached
unexpectedly while parsing the displayName value.public String getDisplayName()
public void setURI(URI uri)
uri
- - the new URI value of this Address.public URI getURI()
public String toString()
toString
in class Object
public boolean equals(Object obj)
equals
in class Object
obj
- - the Object with which to compare this Address
Object
public boolean isWildcard()
((SipURI)Address.getURI()).getUser() == *;
. This method
is specific to SIP and SIPS schemes.
|
NIST SIP Parser and Stack (v1.2) API | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |