Top Description Fields Constructors Methods
org.apache.http.protocol

public Class HttpDateGenerator

extends Object
Class Inheritance
Annotations
@Contract
threading:SAFE
Imports
org.apache.http.annotation.ThreadingBehavior, .Contract, java.text.DateFormat, .SimpleDateFormat, java.util.Date, .Locale, .TimeZone

Generates a date in the format required by the HTTP protocol.
Since
4.0

Field Summary

Modifier and TypeField and Description
private long
private String
private final DateFormat
public static final TimeZone
GMT

The time zone to use in the date header.

public static final String
PATTERN_RFC1123

Date format pattern used to generate the header in RFC 1123 format.

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public synchronized String
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

dateAsLongback to summary
private long dateAsLong
dateAsTextback to summary
private String dateAsText
dateformatback to summary
private final DateFormat dateformat
GMTback to summary
public static final TimeZone GMT

The time zone to use in the date header.

PATTERN_RFC1123back to summary
public static final String PATTERN_RFC1123

Date format pattern used to generate the header in RFC 1123 format.

Constructor Detail

HttpDateGeneratorback to summary
public HttpDateGenerator()

Method Detail

getCurrentDateback to summary
public synchronized String getCurrentDate()