Package org.eclipse.jetty.http
Class DateGenerator
java.lang.Object
org.eclipse.jetty.http.DateGenerator
ThreadLocal Date formatters for HTTP style dates.
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
doFormatCookieDate
(StringBuilder buf, long date) Format "EEE, dd-MMM-yy HH:mm:ss 'GMT'" for cookiesdoFormatDate
(long date) Format HTTP date "EEE, dd MMM yyyy HH:mm:ss 'GMT'"static String
formatCookieDate
(long date) Format "EEE, dd-MMM-yyyy HH:mm:ss 'GMT'" for cookiesstatic void
formatCookieDate
(StringBuilder buf, long date) Format "EEE, dd-MMM-yyyy HH:mm:ss 'GMT'" for cookiesstatic String
formatDate
(long date) Format HTTP date "EEE, dd MMM yyyy HH:mm:ss 'GMT'"
-
Field Details
-
__01Jan1970
-
-
Constructor Details
-
DateGenerator
public DateGenerator()
-
-
Method Details
-
formatDate
Format HTTP date "EEE, dd MMM yyyy HH:mm:ss 'GMT'"- Parameters:
date
- the date in milliseconds- Returns:
- the formatted date
-
formatCookieDate
Format "EEE, dd-MMM-yyyy HH:mm:ss 'GMT'" for cookies- Parameters:
buf
- the buffer to put the formatted date intodate
- the date in milliseconds
-
formatCookieDate
Format "EEE, dd-MMM-yyyy HH:mm:ss 'GMT'" for cookies- Parameters:
date
- the date in milliseconds- Returns:
- the formatted date
-
doFormatDate
Format HTTP date "EEE, dd MMM yyyy HH:mm:ss 'GMT'"- Parameters:
date
- the date in milliseconds- Returns:
- the formatted date
-
doFormatCookieDate
Format "EEE, dd-MMM-yy HH:mm:ss 'GMT'" for cookies- Parameters:
buf
- the buffer to format the date intodate
- the date in milliseconds
-