Class HttpDateFormat
java.lang.Object
org.glassfish.jersey.message.internal.HttpDateFormat
Helper class for HTTP specified date formats.
- Author:
- Paul Sandoz, Marek Potociar
-
Method Summary
Modifier and TypeMethodDescriptionstatic SimpleDateFormat
Get the preferred HTTP specified date format (RFC 1123).static Date
Read a date.
-
Method Details
-
getPreferredDateFormat
Get the preferred HTTP specified date format (RFC 1123).The date format is scoped to the current thread and may be used without requiring to synchronize access to the instance when parsing or formatting.
- Returns:
- the preferred of data format.
-
readDate
Read a date.- Parameters:
date
- the date as a string.- Returns:
- the date
- Throws:
ParseException
- in case the date string cannot be parsed.
-