Package com.seeq

Class CustomInstantDeserializer<T extends org.threeten.bp.temporal.Temporal>

java.lang.Object
com.fasterxml.jackson.databind.JsonDeserializer<T>
com.fasterxml.jackson.databind.deser.std.StdDeserializer<T>
com.fasterxml.jackson.databind.deser.std.StdScalarDeserializer<T>
com.fasterxml.jackson.datatype.threetenbp.deser.ThreeTenDateTimeDeserializerBase<T>
com.seeq.CustomInstantDeserializer<T>
All Implemented Interfaces:
com.fasterxml.jackson.databind.deser.ContextualDeserializer, com.fasterxml.jackson.databind.deser.NullValueProvider, com.fasterxml.jackson.databind.deser.ValueInstantiator.Gettable, Serializable

public class CustomInstantDeserializer<T extends org.threeten.bp.temporal.Temporal> extends com.fasterxml.jackson.datatype.threetenbp.deser.ThreeTenDateTimeDeserializerBase<T>
Deserializer for ThreeTen temporal Instants, OffsetDateTime, and ZonedDateTimes. Adapted from the jackson threetenbp InstantDeserializer to add support for deserializing rfc822 format.
See Also:
  • Nested Class Summary

    Nested classes/interfaces inherited from class com.fasterxml.jackson.databind.JsonDeserializer

    com.fasterxml.jackson.databind.JsonDeserializer.None
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected final com.fasterxml.jackson.datatype.threetenbp.function.BiFunction<T,org.threeten.bp.ZoneId,T>
     
    protected final com.fasterxml.jackson.datatype.threetenbp.function.Function<com.seeq.CustomInstantDeserializer.FromIntegerArguments,T>
     
    protected final com.fasterxml.jackson.datatype.threetenbp.function.Function<com.seeq.CustomInstantDeserializer.FromDecimalArguments,T>
     
    static final CustomInstantDeserializer<org.threeten.bp.Instant>
     
    static final CustomInstantDeserializer<org.threeten.bp.OffsetDateTime>
     
    protected final com.fasterxml.jackson.datatype.threetenbp.function.Function<org.threeten.bp.temporal.TemporalAccessor,T>
     
    static final CustomInstantDeserializer<org.threeten.bp.ZonedDateTime>
     

    Fields inherited from class com.fasterxml.jackson.datatype.threetenbp.deser.ThreeTenDateTimeDeserializerBase

    _formatter

    Fields inherited from class com.fasterxml.jackson.databind.deser.std.StdDeserializer

    _valueClass, _valueType, F_MASK_ACCEPT_ARRAYS, F_MASK_INT_COERCIONS
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
    CustomInstantDeserializer(CustomInstantDeserializer<T> base, org.threeten.bp.format.DateTimeFormatter f)
     
    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.seeq.CustomInstantDeserializer.FromIntegerArguments,T> fromMilliseconds, com.fasterxml.jackson.datatype.threetenbp.function.Function<com.seeq.CustomInstantDeserializer.FromDecimalArguments,T> fromNanoseconds, com.fasterxml.jackson.datatype.threetenbp.function.BiFunction<T,org.threeten.bp.ZoneId,T> adjust)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected org.threeten.bp.DateTimeException
    _peelDTE(org.threeten.bp.DateTimeException arg0)
     
    protected void
    _reportWrongToken(com.fasterxml.jackson.core.JsonParser arg0, com.fasterxml.jackson.databind.DeserializationContext arg1, com.fasterxml.jackson.core.JsonToken arg2, String arg3)
     
    deserialize(com.fasterxml.jackson.core.JsonParser parser, com.fasterxml.jackson.databind.DeserializationContext context)
     
    deserializeWithType(com.fasterxml.jackson.core.JsonParser arg0, com.fasterxml.jackson.databind.DeserializationContext arg1, com.fasterxml.jackson.databind.jsontype.TypeDeserializer arg2)
     
    protected com.fasterxml.jackson.databind.JsonDeserializer<T>
    withDateFormat(org.threeten.bp.format.DateTimeFormatter dtf)
     

    Methods inherited from class com.fasterxml.jackson.datatype.threetenbp.deser.ThreeTenDateTimeDeserializerBase

    createContextual

    Methods inherited from class com.fasterxml.jackson.databind.deser.std.StdScalarDeserializer

    deserialize, getEmptyAccessPattern, getNullAccessPattern, logicalType, supportsUpdate

    Methods inherited from class com.fasterxml.jackson.databind.deser.std.StdDeserializer

    _byteOverflow, _checkCoercionFail, _checkDoubleSpecialValue, _checkFloatSpecialValue, _checkFloatToIntCoercion, _checkFromStringCoercion, _checkFromStringCoercion, _checkTextualNull, _coerceBooleanFromInt, _coercedTypeDesc, _coerceEmptyString, _coerceIntegral, _coerceNullToken, _coerceTextualNull, _deserializeFromArray, _deserializeFromEmpty, _deserializeFromEmptyString, _deserializeFromString, _deserializeWrappedValue, _failDoubleToIntCoercion, _findCoercionFromBlankString, _findCoercionFromEmptyArray, _findCoercionFromEmptyString, _findNullProvider, _hasTextualNull, _intOverflow, _isBlank, _isEmptyOrTextualNull, _isFalse, _isIntNumber, _isNaN, _isNegInf, _isPosInf, _isTrue, _neitherNull, _nonNullNumber, _parseBoolean, _parseBooleanFromInt, _parseBooleanPrimitive, _parseBooleanPrimitive, _parseBytePrimitive, _parseDate, _parseDate, _parseDateFromArray, _parseDouble, _parseDoublePrimitive, _parseDoublePrimitive, _parseFloatPrimitive, _parseFloatPrimitive, _parseInteger, _parseInteger, _parseIntPrimitive, _parseIntPrimitive, _parseLong, _parseLong, _parseLongPrimitive, _parseLongPrimitive, _parseShortPrimitive, _parseString, _reportFailedNullCoerce, _shortOverflow, _verifyEndArrayForSingle, _verifyNullForPrimitive, _verifyNullForPrimitiveCoercion, _verifyNullForScalarCoercion, _verifyNumberForScalarCoercion, _verifyStringForScalarCoercion, findContentNullProvider, findContentNullStyle, findConvertingContentDeserializer, findDeserializer, findFormatFeature, findFormatOverrides, findValueNullProvider, getValueClass, getValueInstantiator, getValueType, getValueType, handledType, handleMissingEndArrayForSingle, handleNestedArrayForSingle, handleUnknownProperty, isDefaultDeserializer, isDefaultKeyDeserializer

    Methods inherited from class com.fasterxml.jackson.databind.JsonDeserializer

    deserializeWithType, findBackReference, getAbsentValue, getDelegatee, getEmptyValue, getEmptyValue, getKnownPropertyNames, getNullValue, getNullValue, getObjectIdReader, isCachable, replaceDelegatee, unwrappingDeserializer

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • INSTANT

      public static final CustomInstantDeserializer<org.threeten.bp.Instant> INSTANT
    • OFFSET_DATE_TIME

      public static final CustomInstantDeserializer<org.threeten.bp.OffsetDateTime> OFFSET_DATE_TIME
    • ZONED_DATE_TIME

      public static final CustomInstantDeserializer<org.threeten.bp.ZonedDateTime> ZONED_DATE_TIME
    • fromMilliseconds

      protected final com.fasterxml.jackson.datatype.threetenbp.function.Function<com.seeq.CustomInstantDeserializer.FromIntegerArguments,T extends org.threeten.bp.temporal.Temporal> fromMilliseconds
    • fromNanoseconds

      protected final com.fasterxml.jackson.datatype.threetenbp.function.Function<com.seeq.CustomInstantDeserializer.FromDecimalArguments,T extends org.threeten.bp.temporal.Temporal> fromNanoseconds
    • parsedToValue

      protected final com.fasterxml.jackson.datatype.threetenbp.function.Function<org.threeten.bp.temporal.TemporalAccessor,T extends org.threeten.bp.temporal.Temporal> parsedToValue
    • adjust

      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
  • Constructor Details

    • CustomInstantDeserializer

      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.seeq.CustomInstantDeserializer.FromIntegerArguments,T> fromMilliseconds, com.fasterxml.jackson.datatype.threetenbp.function.Function<com.seeq.CustomInstantDeserializer.FromDecimalArguments,T> fromNanoseconds, com.fasterxml.jackson.datatype.threetenbp.function.BiFunction<T,org.threeten.bp.ZoneId,T> adjust)
    • CustomInstantDeserializer

      protected CustomInstantDeserializer(CustomInstantDeserializer<T> base, org.threeten.bp.format.DateTimeFormatter f)
  • Method Details

    • withDateFormat

      protected com.fasterxml.jackson.databind.JsonDeserializer<T> withDateFormat(org.threeten.bp.format.DateTimeFormatter dtf)
      Specified by:
      withDateFormat in class com.fasterxml.jackson.datatype.threetenbp.deser.ThreeTenDateTimeDeserializerBase<T extends org.threeten.bp.temporal.Temporal>
    • deserialize

      public T deserialize(com.fasterxml.jackson.core.JsonParser parser, com.fasterxml.jackson.databind.DeserializationContext context) throws IOException
      Specified by:
      deserialize in class com.fasterxml.jackson.databind.JsonDeserializer<T extends org.threeten.bp.temporal.Temporal>
      Throws:
      IOException
    • deserializeWithType

      public Object deserializeWithType(com.fasterxml.jackson.core.JsonParser arg0, com.fasterxml.jackson.databind.DeserializationContext arg1, com.fasterxml.jackson.databind.jsontype.TypeDeserializer arg2) throws IOException
      Overrides:
      deserializeWithType in class com.fasterxml.jackson.databind.deser.std.StdScalarDeserializer<T extends Object>
      Throws:
      IOException
    • _reportWrongToken

      protected void _reportWrongToken(com.fasterxml.jackson.core.JsonParser arg0, com.fasterxml.jackson.databind.DeserializationContext arg1, com.fasterxml.jackson.core.JsonToken arg2, String arg3) throws IOException
      Throws:
      IOException
    • _peelDTE

      protected org.threeten.bp.DateTimeException _peelDTE(org.threeten.bp.DateTimeException arg0)