|
JSIP API v1.2 November 2006 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface DateHeader
The Date header field reflects the time when the request or response is first sent. Retransmissions have the same Date header field value as the original. The Date header field contains the date and time. Unlike HTTP/1.1, SIP only supports the most recent RFC 1123 format for dates. SIP restricts the time zone in SIP-date to "GMT", while RFC 1123 allows any time zone.
The Date header field can be used by simple end systems without a battery-backed clock to acquire a notion of current time. However, in its GMT form, it requires clients to know their offset from GMT.
Example:
Date: Sat, 13 Nov 2010 23:29:00 GMT
Field Summary | |
---|---|
static java.lang.String |
NAME
Name of DateHeader |
Method Summary | |
---|---|
java.util.Calendar |
getDate()
Gets the date of DateHeader. |
void |
setDate(java.util.Calendar date)
Sets date of DateHeader. |
Methods inherited from interface javax.sip.header.Header |
---|
clone, equals, getName, hashCode, toString |
Field Detail |
---|
static final java.lang.String NAME
Method Detail |
---|
void setDate(java.util.Calendar date)
date
- the Calendar object date of this header.java.util.Calendar getDate()
|
JSIP API v1.2 November 2006 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |