NIST-SIP: The Reference Implementation for JAIN-SIP 1.2

javax.sip.header
Interface DateHeader

All Superinterfaces:
Cloneable, Header, Serializable
All Known Implementing Classes:
SIPDateHeader

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

Version:
1.2
Author:
BEA Systems, NIST

Field Summary
static String NAME
          Name of DateHeader
 
Method Summary
 Calendar getDate()
          Gets the date of DateHeader.
 void setDate(Calendar date)
          Sets date of DateHeader.
 
Methods inherited from interface javax.sip.header.Header
clone, equals, getName, hashCode, toString
 

Field Detail

NAME

static final String NAME
Name of DateHeader

See Also:
Constant Field Values
Method Detail

setDate

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

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

getDate

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

Returns:
the Calendar object representing the date of DateHeader

NIST-SIP: The Reference Implementation for JAIN-SIP 1.2

A product of the NIST/ITL Advanced Networking Technologies Division.
See conditions of use.
Submit a bug report or feature request.