public final class FastHttpDateFormat
extends java.lang.Object
| 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.
http spec only requre second precision http://tools.ietf.org/html/rfc2616#page-20 therefore we dont use the millisecond precision , but second . |
static java.lang.String |
getCurrentDate()
Get the current date in HTTP format.
|
static byte[] |
getCurrentDateBytes()
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.
|
public static java.lang.String getCurrentDate()
public static byte[] getCurrentDateBytes()
public static java.lang.String formatDate(long value,
java.text.DateFormat threadLocalFormat)
value - in milli-secondsthreadLocalFormat - the DateFormat used if cache value was
not foundpublic static long parseDate(java.lang.String value,
java.text.DateFormat[] threadLocalformats)
Copyright © 2013 Oracle Corporation. All Rights Reserved.