|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Represents the value of SIP From and To headers. These headers consist of a URI along with an optional display name and set of parameters.
Method Summary | |
java.lang.Object |
clone()
Returns a clone of this SipAddress . |
java.lang.String |
getDisplayName()
Returns the display name of this SipAddress . |
java.lang.String |
getParameter(java.lang.String name)
Returns the value of the specified parameter. |
java.util.Iterator |
getParameterNames()
Returns an Iterator over the set of all parameters
of this address. |
URI |
getURI()
Returns the URI component of this SipAddress . |
void |
removeParameter(java.lang.String name)
Removes the parameter with the specified name. |
void |
setDisplayName(java.lang.String name)
Sets the display name of this SipAddress . |
void |
setParameter(java.lang.String name,
java.lang.String value)
Sets the value of the specified parameter. |
void |
setURI(URI uri)
Sets the URI of this SipAddress . |
java.lang.String |
toString()
Returns the value of this address as a String . |
Method Detail |
public java.lang.String getDisplayName()
SipAddress
. This is
typically a caller or callees real name and may be rendered by a
user agent, for example when alerting.SipAddress
, or null if
one doesn't existpublic void setDisplayName(java.lang.String name)
SipAddress
.name
- display namejava.lang.IllegalStateException
- if this SipAddress
is used
in a context where it cannot be modifiedpublic URI getURI()
URI
component of this SipAddress
.
This will always be non-null.URI
of this SipAddress
public void setURI(URI uri)
SipAddress
.uri
- new URI
of this SipAddress
java.lang.IllegalStateException
- if this SipAddress
is used
in a context where it cannot be modifiedpublic java.lang.String getParameter(java.lang.String name)
name
- the name of the parameterpublic void setParameter(java.lang.String name, java.lang.String value)
name
- parameter namevalue
- parameter valuejava.lang.IllegalStateException
- if this SipAddress
is used
in a context where it cannot be modifiedpublic void removeParameter(java.lang.String name)
name
- parameter namejava.lang.IllegalStateException
- if this SipAddress
is used
in a context where it cannot be modifiedpublic java.util.Iterator getParameterNames()
Iterator
over the set of all parameters
of this address.Iterator
over the set of String
objects that are the names of parameters of this
SipAddress
public java.lang.String toString()
String
. The
resulting string must be a valid value of a SIP From or To header.toString
in class java.lang.Object
SipAddress
as a String
public java.lang.Object clone()
SipAddress
. The cloned
SipAddress
has identical display name, URI, and
parameters, except that it has no tag parameter. This
means the cloned address can be used as an argument to
SipFactory.createRequest
.clone
in class java.lang.Object
SipAddress
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |