org.apache.tomcat.util.http
Class FastHttpDateFormat
java.lang.Object
org.apache.tomcat.util.http.FastHttpDateFormat
public final class FastHttpDateFormat
extends java.lang.Object
Utility class to generate HTTP dates.
- Remy Maucherat
protected static String | currentDate - Current formatted date.
|
protected static long | currentDateGenerated - Instant on which the currentDate object was generated.
|
protected static SimpleDateFormat | format - HTTP date format.
|
protected static HashMap | formatCache - Formatter cache.
|
protected static SimpleDateFormat[] | formats - The set of SimpleDateFormat formats to use in getDateHeader().
|
protected static TimeZone | gmtZone
|
protected static HashMap | parseCache - Parser cache.
|
static String | formatDate(long value, DateFormat threadLocalformat) - Get the HTTP format of the specified date.
|
static String | getCurrentDate() - Get the current date in HTTP format.
|
static long | parseDate(String value, DateFormat[] threadLocalformats) - Try to parse the given date as a HTTP date.
|
currentDate
protected static String currentDate
Current formatted date.
currentDateGenerated
protected static long currentDateGenerated
Instant on which the currentDate object was generated.
format
protected static final SimpleDateFormat format
HTTP date format.
formatCache
protected static final HashMap formatCache
Formatter cache.
formats
protected static final SimpleDateFormat[] formats
The set of SimpleDateFormat formats to use in getDateHeader().
gmtZone
protected static final TimeZone gmtZone
parseCache
protected static final HashMap parseCache
Parser cache.
formatDate
public static final String formatDate(long value,
DateFormat threadLocalformat)
Get the HTTP format of the specified date.
getCurrentDate
public static final String getCurrentDate()
Get the current date in HTTP format.
parseDate
public static final long parseDate(String value,
DateFormat[] threadLocalformats)
Try to parse the given date as a HTTP date.
Copyright B) 2000-2003 Apache Software Foundation. All Rights Reserved.