forked from spring-projects/spring-framework
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Leverage ZonedDateTime in HttpHeaders
This commit introduces 2 new public methods in HttpHeaders in order to leverage Java 8 ZonedDateTime in addition to the existing long (with GMT time zone implied) variants: - ZonedDateTime getFirstZonedDateTime(String headerName) - void setZonedDateTime(String headerName, ZonedDateTime date) This commit also leverages Java 8 thread-safe DateTimeFormatter for HttpHeader implementation instead of SimpleDateFormat. As a consequence of the usage of DateTimeFormatter.RFC_1123_DATE_TIME, HTTP date header serialization could change slightly for single digit days from for example "Thu, 01 Jan 1970 00:00:00 GMT" to "Thu, 1 Jan 1970 00:00:00 GMT". Issue: SPR-15661
- Loading branch information
Showing
6 changed files
with
126 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters