public final class FastHttpDateFormat extends Object
Modifier and Type | Field and Description |
---|---|
static String |
RFC1123_DATE
The only date format permitted when generating HTTP headers.
|
Constructor and Description |
---|
FastHttpDateFormat() |
Modifier and Type | Method and Description |
---|---|
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.
|
public static final String RFC1123_DATE
public static final String getCurrentDate()
public static final String formatDate(long value, DateFormat threadLocalformat)
public static final long parseDate(String value, DateFormat[] threadLocalformats)
Copyright © 2000-2014 Apache Software Foundation. All Rights Reserved.