Handles reusing date formatters, as well as which date formats that will be used to parse various headers.
| Modifier and Type | Field and Description |
|---|---|
| private static final Date | |
| private static DateTimeFormatter | |
| private static final Logger | |
| private static final ThreadLocal | |
| private static final TimeZone |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| private static List | |
| public static String | |
| public static String | Returns: Formatted date.The date to format. date)Format the given date into Swagger RFC3339 date-time format. |
| private static void | |
| pack-priv static Date | |
| private static Date | |
| private static Date |
| AMBIGUOUS_YEAR_TWO_DIGIT_YEAR_START | back to summary |
|---|---|
| private static final Date AMBIGUOUS_YEAR_TWO_DIGIT_YEAR_START | |
| ISO_INSTANT_INCLUDE_MILLIS | back to summary |
|---|---|
| private static DateTimeFormatter ISO_INSTANT_INCLUDE_MILLIS | |
| LOG | back to summary |
|---|---|
| private static final Logger LOG | |
| RFC2616_DATE_FORMATS | back to summary |
|---|---|
| private static final ThreadLocal<List<DateFormat>> RFC2616_DATE_FORMATS | |
| TIMEZONE_GMT | back to summary |
|---|---|
| private static final TimeZone TIMEZONE_GMT | |
| HttpDateUtils | back to summary |
|---|---|
| public HttpDateUtils() | |
| createRfc2616DateFormats | back to summary |
|---|---|
| private static List | |
| format | back to summary |
|---|---|
| public static String format(Date date) Format the given date into Swagger RFC3339 date-time format. Milliseconds won't be included if they are zero. | |
| formatAlwaysIncludeMillis | back to summary |
|---|---|
| public static String formatAlwaysIncludeMillis(Date date) Format the given date into Swagger RFC3339 date-time format. Milliseconds will always be included. | |
| init | back to summary |
|---|---|
| private static void init(List<DateFormat> formats) | |
| parse | back to summary |
|---|---|
| pack-priv static Date parse(String headerName, String value) Attempts to parse the given header into a Date instance. | |
| tryParse | back to summary |
|---|---|
| private static Date tryParse(String date, List<DateFormat> formats) | |
| tryParseRfc3339 | back to summary |
|---|---|
| private static Date tryParseRfc3339(String date) | |