public interface RetryAfterHeader extends Header, Parameters
An optional comment can be used to indicate additional information about the time of callback. An optional "duration" parameter indicates how long the called party will be reachable starting at the initial time of availability. If no duration parameter is given, the service is assumed to be available indefinitely.
For Examples:
Retry-After: 18000;duration=3600
Retry-After: 120 (I'm in a meeting)
Parameters
,
Header
Modifier and Type | Field and Description |
---|---|
static String |
NAME
Name of RetryAfterHeader
|
Modifier and Type | Method and Description |
---|---|
String |
getComment()
Gets the comment of RetryAfterHeader.
|
int |
getDuration()
Gets the duration value of the RetryAfterHeader.
|
int |
getRetryAfter()
Gets the retry after value of the RetryAfterHeader.
|
void |
setComment(String comment)
Sets the comment value of the RetryAfterHeader.
|
void |
setDuration(int duration)
Sets the duration value of the RetryAfterHeader.
|
void |
setRetryAfter(int retryAfter)
Sets the retry after value of the RetryAfterHeader.
|
getParameter, getParameterNames, removeParameter, setParameter
static final String NAME
void setRetryAfter(int retryAfter) throws InvalidArgumentException
retryAfter
- - the new retry after value of this RetryAfterHeaderInvalidArgumentException
- if supplied value is less than zero.int getRetryAfter()
String getComment()
void setComment(String comment) throws ParseException
comment
- - the new comment string value of the RetryAfterHeader.ParseException
- which signals that an error has been reached
unexpectedly while parsing the comment.void setDuration(int duration) throws InvalidArgumentException
duration
- - the new duration value of this RetryAfterHeaderInvalidArgumentException
- if supplied value is less than zero.int getDuration()
Copyright © 2016. All Rights Reserved.