JSIP API v1.2
November 2006

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

Author:
BEA Systems, NIST

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

NAME

static final java.lang.String NAME
Name of DateHeader

See Also:
Constant Field Values
Method Detail

setDate

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

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

JSIP API v1.2
November 2006

If you have any comments, please mail them to JAIN-SIP-INTEREST@java.sun.com after subscribing at http://archives.java.sun.com
Copyright - 2006 BEA Systems and Sun Microsystems