Class HttpDateGenerator


  • @Contract(threading=SAFE)
    public class HttpDateGenerator
    extends java.lang.Object
    Generates a date in the format required by the HTTP protocol.
    Since:
    4.0
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.util.TimeZone GMT
      The time zone to use in the date header.
      static java.lang.String PATTERN_RFC1123
      Date format pattern used to generate the header in RFC 1123 format.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getCurrentDate()  
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • PATTERN_RFC1123

        public static final java.lang.String PATTERN_RFC1123
        Date format pattern used to generate the header in RFC 1123 format.
        See Also:
        Constant Field Values
      • GMT

        public static final java.util.TimeZone GMT
        The time zone to use in the date header.
    • Constructor Detail

      • HttpDateGenerator

        public HttpDateGenerator()
    • Method Detail

      • getCurrentDate

        public java.lang.String getCurrentDate()