Package org.jboss.resteasy.reactive
Annotation Type DateFormat
-
@Retention(RUNTIME) @Target(PARAMETER) public @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
-
-
Field Summary
Fields Modifier and Type Fields Description static StringUNSET_PATTERN
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description Class<? extends DateFormat.DateTimeFormatterProvider>dateTimeFormatterProviderIf set, the class will be used to provide aDateTimeFormatterthat will then be used in order to parse the input String into the desired type.StringpatternIf set, this string will be used in order to build aDateTimeFormatterusingDateTimeFormatter.ofPattern.
-
-
-
Field Detail
-
UNSET_PATTERN
static final String UNSET_PATTERN
-
-
Element Detail
-
pattern
String pattern
If set, this string will be used in order to build aDateTimeFormatterusingDateTimeFormatter.ofPattern. Subsequently, the builtDateTimeFormatterwill be used in order to parse the input String into the desired type.- Default:
- "<<unset>>"
-
-
-
dateTimeFormatterProvider
Class<? extends DateFormat.DateTimeFormatterProvider> dateTimeFormatterProvider
If set, the class will be used to provide aDateTimeFormatterthat will then be used in order to parse the input String into the desired type.- Default:
- org.jboss.resteasy.reactive.DateFormat.DateTimeFormatterProvider.UnsetDateTimeFormatterProvider.class
-
-