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 longprivate Stringprivate final DateTimeFormatterstatic final TimeZoneDeprecated.This attribute is no longer supported as a part of the public API.static final ZoneIdprivate static final intstatic final HttpDateGeneratorSingleton instance.static final StringDate format pattern used to generate the header in RFC 1123 format.private ZoneId -
Constructor Summary
ConstructorsModifierConstructorDescription(package private)privateHttpDateGenerator(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
-