public final class FastHttpDateFormat
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
RFC1123_DATE
Deprecated.
Unused. This will be removed in Tomcat 10.
|
| Constructor and Description |
|---|
FastHttpDateFormat() |
| Modifier and Type | Method and 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. This will be removed in Tomcat 10
|
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 an HTTP date.
|
static long |
parseDate(java.lang.String value,
java.text.DateFormat[] threadLocalformats)
Deprecated.
Unused. This will be removed in Tomcat 10 Use
parseDate(String) |
@Deprecated public static final java.lang.String RFC1123_DATE
public static java.lang.String getCurrentDate()
@Deprecated
public static java.lang.String formatDate(long value,
java.text.DateFormat threadLocalformat)
value - The datethreadLocalformat - Ignored. The local ConcurrentDateFormat will always be used.public static java.lang.String formatDate(long value)
value - The date@Deprecated
public static 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 long parseDate(java.lang.String value)
value - The HTTP date-1 if the value cannot be parsedCopyright © 2000-2024 Apache Software Foundation.
Apache Tomcat, Tomcat, Apache, the Apache Tomcat logo and the Apache logo are either registered trademarks or trademarks of the Apache Software Foundation.