Class TemporalParamConverter<T extends Temporal>
- java.lang.Object
-
- org.jboss.resteasy.reactive.server.core.parameters.converters.TemporalParamConverter<T>
-
- All Implemented Interfaces:
ParameterConverter
- Direct Known Subclasses:
LocalDateParamConverter
,LocalDateTimeParamConverter
,LocalTimeParamConverter
,OffsetDateTimeParamConverter
,OffsetTimeParamConverter
,ZonedDateTimeParamConverter
public abstract class TemporalParamConverter<T extends Temporal> extends Object implements ParameterConverter
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
TemporalParamConverter.TemporalSupplier<T extends TemporalParamConverter<?>>
-
Constructor Summary
Constructors Constructor Description TemporalParamConverter(DateTimeFormatter formatter)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description Object
convert(Object parameter)
protected abstract T
convert(String value)
protected abstract T
convert(String value, DateTimeFormatter formatter)
void
init(ParamConverterProviders deployment, Class<?> rawType, Type genericType, Annotation[] annotations)
-
-
-
Constructor Detail
-
TemporalParamConverter
public TemporalParamConverter(DateTimeFormatter formatter)
-
-
Method Detail
-
convert
protected abstract T convert(String value, DateTimeFormatter formatter)
-
convert
public Object convert(Object parameter)
- Specified by:
convert
in interfaceParameterConverter
-
init
public void init(ParamConverterProviders deployment, Class<?> rawType, Type genericType, Annotation[] annotations)
- Specified by:
init
in interfaceParameterConverter
-
-