public final class FastHttpDateFormat
extends java.lang.Object
Modifier and Type | Field | Description |
---|---|---|
static java.lang.String |
RFC1123_DATE |
Deprecated.
Unused.
|
Constructor | Description |
---|---|
FastHttpDateFormat() |
Modifier and Type | Method | Description |
---|---|---|
static java.lang.String |
formatDate(long value) |
Get the HTTP format of the specified date.
|
static java.lang.String |
formatDate(long value,
java.text.DateFormat threadLocalformat) |
Deprecated.
Unused.
|
static java.lang.String |
getCurrentDate() |
Get the current date in HTTP format.
|
static long |
parseDate(java.lang.String value) |
Try to parse the given date as a HTTP date.
|
static long |
parseDate(java.lang.String value,
java.text.DateFormat[] threadLocalformats) |
Deprecated.
Unused.
|
@Deprecated public static final java.lang.String RFC1123_DATE
public static final java.lang.String getCurrentDate()
@Deprecated public static final java.lang.String formatDate(long value, java.text.DateFormat threadLocalformat)
value
- The datethreadLocalformat
- Ignored. The local ConcurrentDateFormat will
always be used.public static final java.lang.String formatDate(long value)
value
- The date@Deprecated public static final long parseDate(java.lang.String value, java.text.DateFormat[] threadLocalformats)
parseDate(String)
value
- The HTTP datethreadLocalformats
- Ignored. The local array of
ConcurrentDateFormat will always be used.public static final long parseDate(java.lang.String value)
value
- The HTTP date-1
if the value cannot be
parsedCopyright © 2000-2018 Apache Software Foundation. All Rights Reserved.