java.lang.Object
org.glassfish.grizzly.http.util.FastHttpDateFormat
Deprecated.
Utility class to generate HTTP dates.
- Author:
- Gustav Trede, Remy Maucherat
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringformatDate(long value, DateFormat threadLocalFormat) Deprecated.Get the HTTP format of the specified date.
http spec only require second precision http://tools.ietf.org/html/rfc2616#page-20
therefore we don't use the millisecond precision , but second . truncation is done in the same way for second precision in SimpleDateFormat:
(999 millisec. = 0 sec.)static StringDeprecated.Get the current date in HTTP format.static byte[]Deprecated.Get the current date in HTTP format.static longparseDate(String value, DateFormat[] threadLocalformats) Deprecated.Try to parse the given date as a HTTP date.
-
Constructor Details
-
FastHttpDateFormat
public FastHttpDateFormat()Deprecated.
-
-
Method Details
-
getCurrentDate
Deprecated.Get the current date in HTTP format. -
getCurrentDateBytes
public static byte[] getCurrentDateBytes()Deprecated.Get the current date in HTTP format. -
formatDate
Deprecated.Get the HTTP format of the specified date.
http spec only require second precision http://tools.ietf.org/html/rfc2616#page-20
therefore we don't use the millisecond precision , but second . truncation is done in the same way for second precision in SimpleDateFormat:
(999 millisec. = 0 sec.)- Parameters:
value- in milli-secondsthreadLocalFormat- theDateFormatused if cache value was not found
-
parseDate
Deprecated.Try to parse the given date as a HTTP date.
-