public final class FastHttpDateFormat
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
RFC1123_DATE
The only date format permitted when generating HTTP headers.
|
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.
|
public static final java.lang.String RFC1123_DATE
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-2018 Apache Software Foundation. All Rights Reserved.