|
JSIP API v1.2 November 2006 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ExpiresHeader
The Expires header field gives the relative time after which the message (or content) expires. The precise meaning of this is method dependent. The expiration time in an INVITE does not affect the duration of the actual session that may result from the invitation. Session description protocols may offer the ability to express time limits on the session duration, however. The value of this field is an integral number of seconds (in decimal) between 0 and (2**32)-1, measured from the receipt of the request. Malformed values SHOULD be treated as equivalent to 3600.
This interface represents the Expires entity-header. The ExpiresHeader is optional in both REGISTER and INVITE Requests.
Expires: 5
Field Summary | |
---|---|
static java.lang.String |
NAME
Name of ExpiresHeader |
Method Summary | |
---|---|
int |
getExpires()
Gets the expires value of the ExpiresHeader. |
void |
setExpires(int expires)
Sets the relative expires value of the ExpiresHeader in units of seconds. |
Methods inherited from interface javax.sip.header.Header |
---|
clone, equals, getName, hashCode, toString |
Field Detail |
---|
static final java.lang.String NAME
Method Detail |
---|
void setExpires(int expires) throws InvalidArgumentException
expires
- - the new expires value of this ExpiresHeader
InvalidArgumentException
- if supplied value is less than zero.int getExpires()
|
JSIP API v1.2 November 2006 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |