org.apache.tomcat.util.http
public final class FastHttpDateFormat extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected static int |
CACHE_SIZE |
protected static java.lang.String |
currentDate
Current formatted date.
|
protected static long |
currentDateGenerated
Instant on which the currentDate object was generated.
|
protected static java.text.SimpleDateFormat |
format
HTTP date format.
|
protected static java.util.concurrent.ConcurrentHashMap<java.lang.Long,java.lang.String> |
formatCache
Formatter cache.
|
protected static java.text.SimpleDateFormat[] |
formats
The set of SimpleDateFormat formats to use in getDateHeader().
|
protected static java.util.TimeZone |
gmtZone |
protected static java.util.concurrent.ConcurrentHashMap<java.lang.String,java.lang.Long> |
parseCache
Parser cache.
|
Constructor and Description |
---|
FastHttpDateFormat() |
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
formatDate(long value,
java.text.DateFormat threadLocalformat)
Get the HTTP format of the specified date.
|
static java.lang.String |
getCurrentDate()
Get the current date in HTTP format.
|
static long |
parseDate(java.lang.String value,
java.text.DateFormat[] threadLocalformats)
Try to parse the given date as a HTTP date.
|
protected static final int CACHE_SIZE
protected static final java.text.SimpleDateFormat format
protected static final java.text.SimpleDateFormat[] formats
protected static final java.util.TimeZone gmtZone
protected static long currentDateGenerated
protected static java.lang.String currentDate
protected static final java.util.concurrent.ConcurrentHashMap<java.lang.Long,java.lang.String> formatCache
protected static final java.util.concurrent.ConcurrentHashMap<java.lang.String,java.lang.Long> parseCache
public static final java.lang.String getCurrentDate()
public static final java.lang.String formatDate(long value, java.text.DateFormat threadLocalformat)
public static final long parseDate(java.lang.String value, java.text.DateFormat[] threadLocalformats)
Copyright © 2000-2014 Apache Software Foundation. All Rights Reserved.