public class CustomInstantDeserializer<T extends org.threeten.bp.temporal.Temporal>
extends com.fasterxml.jackson.datatype.threetenbp.deser.ThreeTenDateTimeDeserializerBase<T>
Instant
s, OffsetDateTime
, and ZonedDateTime
s.
Adapted from the jackson threetenbp InstantDeserializer to add support for deserializing rfc822 format.Modifier and Type | Field and Description |
---|---|
protected boolean |
_isLenient |
protected com.fasterxml.jackson.datatype.threetenbp.function.BiFunction<T,org.threeten.bp.ZoneId,T> |
adjust |
protected com.fasterxml.jackson.datatype.threetenbp.function.Function<com.fortanix.sdkms.v1.CustomInstantDeserializer.FromIntegerArguments,T> |
fromMilliseconds |
protected com.fasterxml.jackson.datatype.threetenbp.function.Function<com.fortanix.sdkms.v1.CustomInstantDeserializer.FromDecimalArguments,T> |
fromNanoseconds |
static CustomInstantDeserializer<org.threeten.bp.Instant> |
INSTANT |
static CustomInstantDeserializer<org.threeten.bp.OffsetDateTime> |
OFFSET_DATE_TIME |
protected com.fasterxml.jackson.datatype.threetenbp.function.Function<org.threeten.bp.temporal.TemporalAccessor,T> |
parsedToValue |
static CustomInstantDeserializer<org.threeten.bp.ZonedDateTime> |
ZONED_DATE_TIME |
Modifier | Constructor and Description |
---|---|
protected |
CustomInstantDeserializer(Class<T> supportedType,
org.threeten.bp.format.DateTimeFormatter parser,
com.fasterxml.jackson.datatype.threetenbp.function.Function<org.threeten.bp.temporal.TemporalAccessor,T> parsedToValue,
com.fasterxml.jackson.datatype.threetenbp.function.Function<com.fortanix.sdkms.v1.CustomInstantDeserializer.FromIntegerArguments,T> fromMilliseconds,
com.fasterxml.jackson.datatype.threetenbp.function.Function<com.fortanix.sdkms.v1.CustomInstantDeserializer.FromDecimalArguments,T> fromNanoseconds,
com.fasterxml.jackson.datatype.threetenbp.function.BiFunction<T,org.threeten.bp.ZoneId,T> adjust) |
protected |
CustomInstantDeserializer(CustomInstantDeserializer<T> base,
org.threeten.bp.format.DateTimeFormatter f) |
Modifier and Type | Method and Description |
---|---|
protected T |
_failForNotLenient(com.fasterxml.jackson.core.JsonParser arg0,
com.fasterxml.jackson.databind.DeserializationContext arg1,
com.fasterxml.jackson.core.JsonToken arg2) |
protected <R> R |
_handleDateTimeException(com.fasterxml.jackson.databind.DeserializationContext arg0,
org.threeten.bp.DateTimeException arg1,
String arg2) |
protected <R> R |
_handleUnexpectedToken(com.fasterxml.jackson.databind.DeserializationContext arg0,
com.fasterxml.jackson.core.JsonParser arg1,
com.fasterxml.jackson.core.JsonToken... arg2) |
protected <R> R |
_handleUnexpectedToken(com.fasterxml.jackson.databind.DeserializationContext arg0,
com.fasterxml.jackson.core.JsonParser arg1,
String arg2,
Object... arg3) |
protected org.threeten.bp.DateTimeException |
_peelDTE(org.threeten.bp.DateTimeException arg0) |
protected <BOGUS> BOGUS |
_reportWrongToken(com.fasterxml.jackson.databind.DeserializationContext arg0,
com.fasterxml.jackson.core.JsonToken arg1,
String arg2) |
protected <BOGUS> BOGUS |
_reportWrongToken(com.fasterxml.jackson.core.JsonParser arg0,
com.fasterxml.jackson.databind.DeserializationContext arg1,
com.fasterxml.jackson.core.JsonToken... arg2) |
T |
deserialize(com.fasterxml.jackson.core.JsonParser parser,
com.fasterxml.jackson.databind.DeserializationContext context) |
protected boolean |
isLenient() |
protected com.fasterxml.jackson.datatype.threetenbp.deser.ThreeTenDateTimeDeserializerBase<T> |
withDateFormat(org.threeten.bp.format.DateTimeFormatter dtf) |
protected com.fasterxml.jackson.datatype.threetenbp.deser.ThreeTenDateTimeDeserializerBase<T> |
withLeniency(Boolean leniency) |
protected com.fasterxml.jackson.datatype.threetenbp.deser.ThreeTenDateTimeDeserializerBase<T> |
withShape(com.fasterxml.jackson.annotation.JsonFormat.Shape shape) |
_throwNoNumericTimestampNeedTimeZone, createContextual
deserialize, getEmptyAccessPattern, getNullAccessPattern, supportsUpdate
_byteOverflow, _coercedTypeDesc, _coerceEmptyString, _coerceIntegral, _coerceNullToken, _coerceTextualNull, _deserializeFromArray, _deserializeFromEmpty, _deserializeWrappedValue, _failDoubleToIntCoercion, _findNullProvider, _hasTextualNull, _intOverflow, _isEmptyOrTextualNull, _isIntNumber, _isNaN, _isNegInf, _isPosInf, _neitherNull, _nonNullNumber, _parseBooleanFromInt, _parseBooleanPrimitive, _parseBooleanPrimitive, _parseBytePrimitive, _parseDate, _parseDate, _parseDateFromArray, _parseDoublePrimitive, _parseDoublePrimitive, _parseFloatPrimitive, _parseFloatPrimitive, _parseIntPrimitive, _parseIntPrimitive, _parseLongPrimitive, _parseLongPrimitive, _parseShortPrimitive, _parseString, _reportFailedNullCoerce, _shortOverflow, _verifyEndArrayForSingle, _verifyNullForPrimitive, _verifyNullForPrimitiveCoercion, _verifyNullForScalarCoercion, _verifyNumberForScalarCoercion, _verifyStringForScalarCoercion, findContentNullProvider, findContentNullStyle, findConvertingContentDeserializer, findDeserializer, findFormatFeature, findFormatOverrides, findValueNullProvider, getValueClass, getValueType, getValueType, handledType, handleMissingEndArrayForSingle, handleUnknownProperty, isDefaultDeserializer, isDefaultKeyDeserializer, parseDouble
public static final CustomInstantDeserializer<org.threeten.bp.Instant> INSTANT
public static final CustomInstantDeserializer<org.threeten.bp.OffsetDateTime> OFFSET_DATE_TIME
public static final CustomInstantDeserializer<org.threeten.bp.ZonedDateTime> ZONED_DATE_TIME
protected final com.fasterxml.jackson.datatype.threetenbp.function.Function<com.fortanix.sdkms.v1.CustomInstantDeserializer.FromIntegerArguments,T extends org.threeten.bp.temporal.Temporal> fromMilliseconds
protected final com.fasterxml.jackson.datatype.threetenbp.function.Function<com.fortanix.sdkms.v1.CustomInstantDeserializer.FromDecimalArguments,T extends org.threeten.bp.temporal.Temporal> fromNanoseconds
protected final com.fasterxml.jackson.datatype.threetenbp.function.Function<org.threeten.bp.temporal.TemporalAccessor,T extends org.threeten.bp.temporal.Temporal> parsedToValue
protected final com.fasterxml.jackson.datatype.threetenbp.function.BiFunction<T extends org.threeten.bp.temporal.Temporal,org.threeten.bp.ZoneId,T extends org.threeten.bp.temporal.Temporal> adjust
protected final boolean _isLenient
protected CustomInstantDeserializer(Class<T> supportedType, org.threeten.bp.format.DateTimeFormatter parser, com.fasterxml.jackson.datatype.threetenbp.function.Function<org.threeten.bp.temporal.TemporalAccessor,T> parsedToValue, com.fasterxml.jackson.datatype.threetenbp.function.Function<com.fortanix.sdkms.v1.CustomInstantDeserializer.FromIntegerArguments,T> fromMilliseconds, com.fasterxml.jackson.datatype.threetenbp.function.Function<com.fortanix.sdkms.v1.CustomInstantDeserializer.FromDecimalArguments,T> fromNanoseconds, com.fasterxml.jackson.datatype.threetenbp.function.BiFunction<T,org.threeten.bp.ZoneId,T> adjust)
protected CustomInstantDeserializer(CustomInstantDeserializer<T> base, org.threeten.bp.format.DateTimeFormatter f)
protected com.fasterxml.jackson.datatype.threetenbp.deser.ThreeTenDateTimeDeserializerBase<T> withDateFormat(org.threeten.bp.format.DateTimeFormatter dtf)
withDateFormat
in class com.fasterxml.jackson.datatype.threetenbp.deser.ThreeTenDateTimeDeserializerBase<T extends org.threeten.bp.temporal.Temporal>
protected com.fasterxml.jackson.datatype.threetenbp.deser.ThreeTenDateTimeDeserializerBase<T> withShape(com.fasterxml.jackson.annotation.JsonFormat.Shape shape)
withShape
in class com.fasterxml.jackson.datatype.threetenbp.deser.ThreeTenDateTimeDeserializerBase<T extends org.threeten.bp.temporal.Temporal>
protected com.fasterxml.jackson.datatype.threetenbp.deser.ThreeTenDateTimeDeserializerBase<T> withLeniency(Boolean leniency)
withLeniency
in class com.fasterxml.jackson.datatype.threetenbp.deser.ThreeTenDateTimeDeserializerBase<T extends org.threeten.bp.temporal.Temporal>
public T deserialize(com.fasterxml.jackson.core.JsonParser parser, com.fasterxml.jackson.databind.DeserializationContext context) throws IOException
deserialize
in class com.fasterxml.jackson.databind.JsonDeserializer<T extends org.threeten.bp.temporal.Temporal>
IOException
protected boolean isLenient()
protected <BOGUS> BOGUS _reportWrongToken(com.fasterxml.jackson.databind.DeserializationContext arg0, com.fasterxml.jackson.core.JsonToken arg1, String arg2) throws IOException
IOException
protected <BOGUS> BOGUS _reportWrongToken(com.fasterxml.jackson.core.JsonParser arg0, com.fasterxml.jackson.databind.DeserializationContext arg1, com.fasterxml.jackson.core.JsonToken... arg2) throws IOException
IOException
protected <R> R _handleDateTimeException(com.fasterxml.jackson.databind.DeserializationContext arg0, org.threeten.bp.DateTimeException arg1, String arg2) throws com.fasterxml.jackson.databind.JsonMappingException
com.fasterxml.jackson.databind.JsonMappingException
protected <R> R _handleUnexpectedToken(com.fasterxml.jackson.databind.DeserializationContext arg0, com.fasterxml.jackson.core.JsonParser arg1, String arg2, Object... arg3) throws com.fasterxml.jackson.databind.JsonMappingException
com.fasterxml.jackson.databind.JsonMappingException
protected <R> R _handleUnexpectedToken(com.fasterxml.jackson.databind.DeserializationContext arg0, com.fasterxml.jackson.core.JsonParser arg1, com.fasterxml.jackson.core.JsonToken... arg2) throws com.fasterxml.jackson.databind.JsonMappingException
com.fasterxml.jackson.databind.JsonMappingException
protected T _failForNotLenient(com.fasterxml.jackson.core.JsonParser arg0, com.fasterxml.jackson.databind.DeserializationContext arg1, com.fasterxml.jackson.core.JsonToken arg2) throws IOException
IOException
protected org.threeten.bp.DateTimeException _peelDTE(org.threeten.bp.DateTimeException arg0)
Copyright © 2017-2021 Fortanix Inc. All Rights Reserved