Package org.jboss.resteasy.reactive
Annotation Interface DateFormat
An annotation that can be used on a date JAX-RS Resource method parameter type in order to determine the format
that will be used to parse that type.
Supported types are:
- java.time.LocalDate
- java.time.LocalDateTime
- java.time.LocalTime
- java.time.OffsetDateTime
- java.time.OffsetTime
- java.time.ZonedDateTime
-
Nested Class Summary
-
Optional Element Summary
Modifier and TypeOptional ElementDescriptionClass<? extends DateFormat.DateTimeFormatterProvider>
If set, the class will be used to provide aDateTimeFormatter
that will then be used in order to parse the input String into the desired type.If set, this string will be used in order to build aDateTimeFormatter
usingDateTimeFormatter.ofPattern
. -
Field Summary
-
Field Details
-
UNSET_PATTERN
- See Also:
-
-
Element Details
-
pattern
String patternIf set, this string will be used in order to build aDateTimeFormatter
usingDateTimeFormatter.ofPattern
. Subsequently, the builtDateTimeFormatter
will be used in order to parse the input String into the desired type.- Default:
- "<<unset>>"
-
dateTimeFormatterProvider
Class<? extends DateFormat.DateTimeFormatterProvider> dateTimeFormatterProviderIf set, the class will be used to provide aDateTimeFormatter
that will then be used in order to parse the input String into the desired type.- Default:
- org.jboss.resteasy.reactive.DateFormat.DateTimeFormatterProvider.UnsetDateTimeFormatterProvider.class
-