Class DateGenerator


  • @Deprecated(since="2021-05-27")
    public class DateGenerator
    extends Object
    Deprecated.
    The Eclipse Jetty and Apache Felix Http Jetty packages are no longer supported.
    ThreadLocal Date formatters for HTTP style dates.
    • Field Detail

      • __01Jan1970

        public static final String __01Jan1970
        Deprecated.
    • Constructor Detail

      • DateGenerator

        public DateGenerator()
        Deprecated.
    • Method Detail

      • formatDate

        public static 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​(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 into
        date - the date in milliseconds
      • formatCookieDate

        public static 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 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​(StringBuilder buf,
                                       long date)
        Deprecated.
        Format "EEE, dd-MMM-yy HH:mm:ss 'GMT'" for cookies
        Parameters:
        buf - the buffer to format the date into
        date - the date in milliseconds