Class HttpDateGenerator
- java.lang.Object
-
- org.apache.hc.core5.http.protocol.HttpDateGenerator
-
-
Field Summary
Fields Modifier and Type Field Description private long
dateAsMillis
private java.lang.String
dateAsText
private java.time.format.DateTimeFormatter
dateTimeFormatter
static java.util.TimeZone
GMT
Deprecated.This attribute is no longer supported as a part of the public API.static java.time.ZoneId
GMT_ID
private static int
GRANULARITY_MILLIS
static HttpDateGenerator
INSTANCE
Singleton instance.static java.lang.String
PATTERN_RFC1123
Date format pattern used to generate the header in RFC 1123 format.private java.time.ZoneId
zoneId
-
Constructor Summary
Constructors Modifier Constructor Description (package private)
HttpDateGenerator()
private
HttpDateGenerator(java.lang.String pattern, java.time.ZoneId zoneId)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getCurrentDate()
-
-
-
Field Detail
-
GRANULARITY_MILLIS
private static final int GRANULARITY_MILLIS
- See Also:
- Constant Field Values
-
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
@Deprecated public static final java.util.TimeZone GMT
Deprecated.This attribute is no longer supported as a part of the public API. The time zone to use in the date header.
-
GMT_ID
public static final java.time.ZoneId GMT_ID
-
INSTANCE
public static final HttpDateGenerator INSTANCE
Singleton instance.
-
dateTimeFormatter
private final java.time.format.DateTimeFormatter dateTimeFormatter
-
dateAsMillis
private long dateAsMillis
-
dateAsText
private java.lang.String dateAsText
-
zoneId
private java.time.ZoneId zoneId
-
-