|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectrabbit.http.HTTPDateParser
public class HTTPDateParser
A utility class that parses date in the HTTP headers. A date in HTTP may be written in many different formats so try them all.
Constructor Summary | |
---|---|
HTTPDateParser()
The default constructor. |
Method Summary | |
---|---|
static java.util.Date |
getDate(java.lang.String date)
Try to get a date from the given string. |
static java.lang.String |
getDateString(java.util.Date d)
Get a String from the date. |
static void |
main(java.lang.String[] args)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public HTTPDateParser()
Method Detail |
---|
public static java.util.Date getDate(java.lang.String date)
date
- the String we are trying to parse.
public static java.lang.String getDateString(java.util.Date d)
d
- the Date to format.
public static void main(java.lang.String[] args)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |