org.restlet.ext.sip
Class Address

java.lang.Object
  extended by org.restlet.ext.sip.Address
All Implemented Interfaces:
Cloneable
Direct Known Subclasses:
ContactInfo

public class Address
extends Object
implements Cloneable

Address of a SIP agent. Used by the SIP "Alert-Info", "Contact", "Error-info", "From", "Record-Route", "Reply-To", "Route" and "To" headers.

Author:
Thierry Boileau

Constructor Summary
Address()
          Default constructor.
Address(Reference reference)
          Constructor.
Address(Reference reference, String displayName)
          Constructor.
Address(String reference, String displayName)
          Constructor.
 
Method Summary
protected  Object clone()
           
 String getDisplayName()
          Returns the optional name displayed.
 Series<Parameter> getParameters()
          Returns the list of generic parameters.
 Reference getReference()
          Returns the address reference.
 void setDisplayName(String displayName)
          Sets the optional name displayed.
 void setParameters(Series<Parameter> parameters)
          Sets the list of generic parameters.
 void setReference(Reference reference)
          Sets the address reference.
 String toString()
           
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Address

public Address()
Default constructor.


Address

public Address(Reference reference)
Constructor.

Parameters:
reference - The address reference.

Address

public Address(Reference reference,
               String displayName)
Constructor.

Parameters:
reference - The address reference.
displayName - The name displayed.

Address

public Address(String reference,
               String displayName)
Constructor.

Parameters:
reference - The address reference.
displayName - The name displayed.
Method Detail

clone

protected Object clone()
                throws CloneNotSupportedException
Overrides:
clone in class Object
Throws:
CloneNotSupportedException

getDisplayName

public String getDisplayName()
Returns the optional name displayed.

Returns:
The optional name displayed.

getParameters

public Series<Parameter> getParameters()
Returns the list of generic parameters.

Returns:
The list of generic parameters.

getReference

public Reference getReference()
Returns the address reference.

Returns:
The address reference.

setDisplayName

public void setDisplayName(String displayName)
Sets the optional name displayed.

Parameters:
displayName - The optional name displayed.

setParameters

public void setParameters(Series<Parameter> parameters)
Sets the list of generic parameters.

Parameters:
parameters - The list of generic parameters.

setReference

public void setReference(Reference reference)
Sets the address reference.

Parameters:
reference - The address reference.

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2005-2013 Restlet.