|
|
|
|
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.torweg.pulse.util.time.HTTPDate
public final class HTTPDate
utility to produce HTTP date string conformant to RFCs 2068, 822, 1123.
| Field Summary | |
|---|---|
static java.lang.String |
HTTP_DATE_FORMAT
HTTP Date format pattern (RFC 2068, 822, 1123). |
| Method Summary | |
|---|---|
static java.lang.String |
get(java.util.Calendar calendar)
returns an HTTP date conforming to RFCs 2068, 822, 1123. |
static java.lang.String |
get(java.util.Date date)
returns an HTTP date conforming to RFCs 2068, 822, 1123. |
static java.lang.String |
get(long timestamp)
returns an HTTP date conforming to RFCs 2068, 822, 1123. |
static java.text.DateFormat |
getDateFormat()
returns a DateFormat to format RFC compliant HTTP dates. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String HTTP_DATE_FORMAT
| Method Detail |
|---|
public static java.lang.String get(long timestamp)
timestamp - the timestamp
public static java.lang.String get(java.util.Date date)
date - the date
public static java.lang.String get(java.util.Calendar calendar)
calendar - the calendar
public static java.text.DateFormat getDateFormat()
DateFormat to format RFC compliant HTTP dates.
DateFormat
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||