|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.sun.jersey.core.header.HttpDateFormat
public class HttpDateFormat
Helper class for HTTP specified date formats.
Method Summary | |
---|---|
static java.util.List<java.text.SimpleDateFormat> |
getDateFormats()
Return an unmodifiable list of HTTP specified date formats to use for parsing or formating Date . |
static java.text.SimpleDateFormat |
getPreferedDateFormat()
Get the preferred HTTP specified date format (RFC 1123). |
static java.util.Date |
readDate(java.lang.String date)
Read a date. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static java.util.List<java.text.SimpleDateFormat> getDateFormats()
Date
.
The list of date formats are scoped to the current thread and may be used without requiring to synchronize access to the instances when parsing or formatting.
public static java.text.SimpleDateFormat getPreferedDateFormat()
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.
public static java.util.Date readDate(java.lang.String date) throws java.text.ParseException
date
- the date as a string.
java.text.ParseException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |