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 String
UNSET_PATTERN
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description Class<? extends DateFormat.DateTimeFormatterProvider>
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.String
pattern
If set, this string will be used in order to build aDateTimeFormatter
usingDateTimeFormatter.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 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> 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.- Default:
- org.jboss.resteasy.reactive.DateFormat.DateTimeFormatterProvider.UnsetDateTimeFormatterProvider.class
-
-