Class HttpDateGenerator
java.lang.Object
org.apache.hc.core5.http.protocol.HttpDateGenerator
Generates a date in the format required by the HTTP protocol.
- Since:
- 4.0
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate long
private String
private final DateTimeFormatter
static final TimeZone
Deprecated.This attribute is no longer supported as a part of the public API.static final ZoneId
private static final int
static final HttpDateGenerator
Singleton instance.static final String
Date format pattern used to generate the header in RFC 1123 format.private ZoneId
-
Constructor Summary
ConstructorsModifierConstructorDescription(package private)
private
HttpDateGenerator
(String pattern, ZoneId zoneId) -
Method Summary
-
Field Details
-
GRANULARITY_MILLIS
private static final int GRANULARITY_MILLIS- See Also:
-
PATTERN_RFC1123
Date format pattern used to generate the header in RFC 1123 format.- See Also:
-
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
-
INSTANCE
Singleton instance. -
dateTimeFormatter
-
dateAsMillis
private long dateAsMillis -
dateAsText
-
zoneId
-
-
Constructor Details
-
HttpDateGenerator
HttpDateGenerator() -
HttpDateGenerator
-
-
Method Details
-
getCurrentDate
-