org.restlet.ext.sip
Class Availability

java.lang.Object
  extended by org.restlet.ext.sip.Availability

public class Availability
extends Object

Provides availability details on a SIP agent. Used by the SIP "Retry-After" header.

Author:
Thierry Boileau

Constructor Summary
Availability(int delay)
          Constructor.
Availability(int delay, int duration)
          Constructor.
Availability(int delay, int duration, String comment)
          Constructor.
 
Method Summary
 String getComment()
          Returns additional information about the time of callback.
 int getDelay()
          Returns the time the service is expected to be unavailable.
 int getDuration()
          Returns the time the service will be available.
 Series<Parameter> getParameters()
          Returns the list of other parameters.
 void setComment(String comment)
          Sets additional information about the time of callback.
 void setDelay(int delay)
          Sets the time the service is expected to be unavailable.
 void setDuration(int duration)
          Sets the time the service will be available.
 void setParameters(Series<Parameter> parameters)
          Sets the list of other parameters.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Availability

public Availability(int delay)
Constructor.

Parameters:
delay - The time the service is expected to be unavailable.

Availability

public Availability(int delay,
                    int duration)
Constructor.

Parameters:
delay - The time the service is expected to be unavailable.
duration - The time the service will be available.

Availability

public Availability(int delay,
                    int duration,
                    String comment)
Constructor.

Parameters:
delay - The time the service is expected to be unavailable.
duration - The time the service will be available.
comment - Additional information about the time of callback.
Method Detail

getComment

public String getComment()
Returns additional information about the time of callback.

Returns:
Additional information about the time of callback.

getDelay

public int getDelay()
Returns the time the service is expected to be unavailable.

Returns:
The time the service is expected to be unavailable.

getDuration

public int getDuration()
Returns the time the service will be available.

Returns:
The time the service will be available.

getParameters

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

Returns:
The list of other parameters.

setComment

public void setComment(String comment)
Sets additional information about the time of callback.

Parameters:
comment - Additional information about the time of callback.

setDelay

public void setDelay(int delay)
Sets the time the service is expected to be unavailable.

Parameters:
delay - The time the service is expected to be unavailable.

setDuration

public void setDuration(int duration)
Sets the time the service will be available.

Parameters:
duration - The time the service will be available.

setParameters

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

Parameters:
parameters - The list of other parameters.


Copyright © 2005-2013 Restlet.