| java.lang.Object | |
| ↳ | org.springframework.security.web.savedrequest.FastHttpDateFormat |
Utility class to generate HTTP dates.
This class is based on code in Apache Tomcat.
| Fields | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| currentDate | Current formatted date. | ||||||||||
| currentDateGenerated | Instant on which the currentDate object was generated. | ||||||||||
| format | HTTP date format. | ||||||||||
| formatCache | Formatter cache. | ||||||||||
| formats | The set of SimpleDateFormat formats to use in getDateHeader(). |
||||||||||
| gmtZone | GMT time zone - all HTTP dates are on GMT | ||||||||||
| parseCache | Parser cache. | ||||||||||
| Public Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Formats a specified date to HTTP format.
| |||||||||||
Gets the current date in HTTP format.
| |||||||||||
Tries to parse the given date as an HTTP date.
| |||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
Instant on which the currentDate object was generated.
The set of SimpleDateFormat formats to use in getDateHeader().
Formats a specified date to HTTP format. If local format is not null, it's used instead.
| value | Date value to format |
|---|---|
| threadLocalformat | The format to use (or null -- then HTTP format will be used) |
Gets the current date in HTTP format.
Tries to parse the given date as an HTTP date. If local format list is not null, it's used
instead.
| value | The string to parse |
|---|---|
| threadLocalformats | Array of formats to use for parsing. If null, HTTP formats are used. |