|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--jain.protocol.ip.sip.header.Header
|
+--jain.protocol.ip.sip.header.GeneralHeader
|
+--jain.protocol.ip.sip.header.RetryAfterHeader
This class represents the Retry-After general-header. The RetryAfterHeader can be used with a SERVICE_UNAVAILABLE ResponseMessage to indicate how long the service is expected to be unavailable to the requesting client and with a NOT_FOUND, BUSY, or DECLINE ResponseMessage to indicate when the called party anticipates being available again. The value of this field can be either a date or an integer number of seconds (in decimal) after the time of the ResponseMessage.
A RegisterMessage may include a RetryAfterHeader when deleting registrations with a wildcard ContactHeader. The value then indicates when the user might again be reachable. The registrar may then include this information in ResponseMessages to future calls.
An optional comment can be used to indicate additional information about the time of callback. An optional duration indicates how long the called party will be reachable starting at the initial time of availability. If no duration is given, the service is assumed to be available indefinitely.
| Field Summary | |
static java.lang.String |
token
Token of RetryAfterHeader |
| Fields inherited from class jain.protocol.ip.sip.header.Header |
ENTITY_HEADER,
GENERAL_HEADER,
REQUEST_HEADER,
RESPONSE_HEADER |
| Constructor Summary | |
RetryAfterHeader(java.util.Date date)
Creates a RetryAfterHeader based on given date |
|
RetryAfterHeader(long deltaSeconds)
Creates a RetryAfterHeader based on given number of delta-seconds |
|
| Method Summary | |
java.lang.Object |
clone()
Creates and returns a copy of RetryAfterHeader |
boolean |
equals(RetryAfterHeader retryAfterHeader)
Indicates whether some other RetryAfterHeader is "equal to" this one |
java.lang.String |
getComment()
Gets comment of RetryAfterHeader |
java.util.Date |
getDate()
Gets date of RetryAfterHeader |
long |
getDeltaSeconds()
Gets delta-seconds of RetryAfterHeader |
long |
getDuration()
Gets duration of RetryAfterHeader |
java.lang.String |
getValue()
Gets value of RetryAfterHeader |
boolean |
hasComment()
Returns boolean value to indicate if RetryAfterHeader has comment |
boolean |
hasDate()
Returns boolean value to indicate if RetryAfterHeader has date |
boolean |
hasDuration()
Returns boolean value to indicate if RetryAfterHeader has duration |
void |
removeComment()
Removes comment from RetryAfterHeader |
void |
removeDuration()
Removes duration from RetryAfterHeader |
void |
setComment(java.lang.String comment)
Sets comment of RetryAfterHeader |
void |
setDate(java.util.Date date)
Sets date of RetryAfterHeader |
void |
setDeltaSeconds(long deltaSeconds)
Sets delta-seconds of RetryAfterHeader |
void |
setDuration(long duration)
Sets duration of RetryAfterHeader |
| Methods inherited from class jain.protocol.ip.sip.header.Header |
equals,
getHeaderType,
getToken,
setValue,
toString |
| Methods inherited from class java.lang.Object |
equals,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
| Field Detail |
public static final java.lang.String token
| Constructor Detail |
public RetryAfterHeader(long deltaSeconds)
throws java.lang.IllegalArgumentException
deltaSeconds - number of delta-seconds
public RetryAfterHeader(java.util.Date date)
throws java.lang.IllegalArgumentException
date - date| Method Detail |
public java.util.Date getDate()
throws ParameterNotSetException
public long getDeltaSeconds()
throws ParameterNotSetException
public java.lang.String getComment()
throws ParameterNotSetException
public boolean hasDuration()
public boolean hasComment()
public boolean hasDate()
public long getDuration()
throws ParameterNotSetException
public void setDate(java.util.Date date)
throws java.lang.IllegalArgumentException
date - datepublic void setDeltaSeconds(long deltaSeconds)
deltaSeconds - number of delta-secondspublic void setComment(java.lang.String comment)
comment - comment
public void setDuration(long duration)
throws java.lang.IllegalArgumentException
duration - durationpublic void removeComment()
public void removeDuration()
public java.lang.String getValue()
public java.lang.Object clone()
public boolean equals(RetryAfterHeader retryAfterHeader)
retryAfterHeader - the RetryAfterHeader with which to compare
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Copyright - 2000 Sun Microsystems