|
||||||||||
| 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 Date |
getDate(String date)
Try to get a date from the given string. |
static String |
getDateString(Date d)
Get a String from the date. |
static void |
main(String[] args)
Simple self test method. |
static void |
setOffset(long offset)
Set the time offset relative GMT. |
| 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 void setOffset(long offset)
public static Date getDate(String date)
date - the String we are trying to parse.
public static String getDateString(Date d)
d - the Date to format.
public static void main(String[] args)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||