JAIN SIP API
v1.1 - 23rd June 2003

javax.sip.header
Interface DateHeader

All Superinterfaces:
java.lang.Cloneable, Header, java.io.Serializable

public interface DateHeader
extends Header

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, toString
 

Field Detail

NAME

public static final java.lang.String NAME
Name of DateHeader

See Also:
Constant Field Values
Method Detail

setDate

public void setDate(java.util.Calendar date)
Sets date of DateHeader. The date is repesented by the Calendar object.

Parameters:
date - the Calendar object date of this header.

getDate

public java.util.Calendar getDate()
Gets the date of DateHeader. The date is repesented by the Calender object.

Returns:
the Calendar object representing the date of DateHeader

JAIN SIP API
v1.1 - 23rd June 2003

If you have any comments, please mail them to JAIN-SIP-INTEREST@java.sun.com after subscribing to the
JAIN-SIP-Interest list at http://archives.java.sun.com
Copyright - 2003 Sun Microsystems