Package org.eclipse.jetty.http
Class DateGenerator
- java.lang.Object
-
- org.eclipse.jetty.http.DateGenerator
-
@Deprecated(since="2021-05-27") public class DateGenerator extends java.lang.Object
Deprecated.The Eclipse Jetty and Apache Felix Http Jetty packages are no longer supported.ThreadLocal Date formatters for HTTP style dates.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
__01Jan1970
Deprecated.
-
Constructor Summary
Constructors Constructor Description DateGenerator()
Deprecated.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description void
doFormatCookieDate(java.lang.StringBuilder buf, long date)
Deprecated.Format "EEE, dd-MMM-yy HH:mm:ss 'GMT'" for cookiesjava.lang.String
doFormatDate(long date)
Deprecated.Format HTTP date "EEE, dd MMM yyyy HH:mm:ss 'GMT'"static java.lang.String
formatCookieDate(long date)
Deprecated.Format "EEE, dd-MMM-yyyy HH:mm:ss 'GMT'" for cookiesstatic void
formatCookieDate(java.lang.StringBuilder buf, long date)
Deprecated.Format "EEE, dd-MMM-yyyy HH:mm:ss 'GMT'" for cookiesstatic java.lang.String
formatDate(long date)
Deprecated.Format HTTP date "EEE, dd MMM yyyy HH:mm:ss 'GMT'"
-
-
-
Method Detail
-
formatDate
public static java.lang.String formatDate(long date)
Deprecated.Format HTTP date "EEE, dd MMM yyyy HH:mm:ss 'GMT'"- Parameters:
date
- the date in milliseconds- Returns:
- the formatted date
-
formatCookieDate
public static void formatCookieDate(java.lang.StringBuilder buf, long date)
Deprecated.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
public static java.lang.String formatCookieDate(long date)
Deprecated.Format "EEE, dd-MMM-yyyy HH:mm:ss 'GMT'" for cookies- Parameters:
date
- the date in milliseconds- Returns:
- the formatted date
-
doFormatDate
public java.lang.String doFormatDate(long date)
Deprecated.Format HTTP date "EEE, dd MMM yyyy HH:mm:ss 'GMT'"- Parameters:
date
- the date in milliseconds- Returns:
- the formatted date
-
doFormatCookieDate
public void doFormatCookieDate(java.lang.StringBuilder buf, long date)
Deprecated.Format "EEE, dd-MMM-yy HH:mm:ss 'GMT'" for cookies- Parameters:
buf
- the buffer to format the date intodate
- the date in milliseconds
-
-