Class HttpDateGenerator

java.lang.Object
org.apache.http.protocol.HttpDateGenerator

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

    • PATTERN_RFC1123

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

      public static final TimeZone GMT
      The time zone to use in the date header.
    • dateformat

      private final DateFormat dateformat
    • dateAsLong

      private long dateAsLong
    • dateAsText

      private String dateAsText
  • Constructor Details

    • HttpDateGenerator

      public HttpDateGenerator()
  • Method Details

    • getCurrentDate

      public String getCurrentDate()