|
||||||||||
| 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)
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)
offset - the time difference in millispublic 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)
args - the command line arguments
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||