Class MessageJsonDeserializer<T extends Message<?>>

java.lang.Object
tools.jackson.databind.ValueDeserializer<T>
tools.jackson.databind.deser.std.StdDeserializer<T>
tools.jackson.databind.deser.std.StdNodeBasedDeserializer<T>
org.springframework.integration.support.json.MessageJsonDeserializer<T>
Type Parameters:
T - the message type.
All Implemented Interfaces:
tools.jackson.databind.deser.NullValueProvider, tools.jackson.databind.deser.ValueInstantiator.Gettable
Direct Known Subclasses:
AdviceMessageJsonDeserializer, ErrorMessageJsonDeserializer, GenericMessageJsonDeserializer, MutableMessageJsonDeserializer

public abstract class MessageJsonDeserializer<T extends Message<?>> extends tools.jackson.databind.deser.std.StdNodeBasedDeserializer<T>
A Jackson StdNodeBasedDeserializer extension for Message implementations.
Since:
7.0
Author:
Jooyoung Pyoung
  • Nested Class Summary

    Nested classes/interfaces inherited from class tools.jackson.databind.ValueDeserializer

    tools.jackson.databind.ValueDeserializer.None
  • Field Summary

    Fields inherited from class tools.jackson.databind.deser.std.StdNodeBasedDeserializer

    _treeDeserializer

    Fields inherited from class tools.jackson.databind.deser.std.StdDeserializer

    _valueClass, _valueType, F_MASK_INT_COERCIONS
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected abstract T
    buildMessage(MutableMessageHeaders headers, Object payload, tools.jackson.databind.JsonNode root, tools.jackson.databind.DeserializationContext ctxt)
     
    convert(tools.jackson.databind.JsonNode root, tools.jackson.databind.DeserializationContext ctxt)
     
    deserializeWithType(tools.jackson.core.JsonParser jp, tools.jackson.databind.DeserializationContext ctxt, tools.jackson.databind.jsontype.TypeDeserializer td)
     
    protected tools.jackson.databind.json.JsonMapper
     
    void
    setMapper(tools.jackson.databind.json.JsonMapper mapper)
     
    protected final void
    setPayloadType(tools.jackson.databind.JavaType payloadType)
     

    Methods inherited from class tools.jackson.databind.deser.std.StdNodeBasedDeserializer

    convert, deserialize, deserialize, resolve

    Methods inherited from class tools.jackson.databind.deser.std.StdDeserializer

    _byteOverflow, _checkBooleanToStringCoercion, _checkCoercionFail, _checkDoubleSpecialValue, _checkFloatSpecialValue, _checkFloatToIntCoercion, _checkFloatToStringCoercion, _checkFromStringCoercion, _checkFromStringCoercion, _checkIntToFloatCoercion, _checkIntToStringCoercion, _checkTextualNull, _checkToStringCoercion, _coerceBooleanFromInt, _coercedTypeDesc, _coercedTypeDesc, _coerceIntegral, _deserializeFromArray, _deserializeFromEmptyString, _deserializeFromString, _deserializeWrappedValue, _findCoercionFromBlankString, _findCoercionFromEmptyArray, _findCoercionFromEmptyString, _findNullProvider, _hasTextualNull, _intOverflow, _isBlank, _isFalse, _isIntNumber, _isNaN, _isNegInf, _isPosInf, _isTrue, _neitherNull, _nonNullNumber, _parseBoolean, _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, _wrapIOFailure, findContentNullProvider, findContentNullStyle, findConvertingContentDeserializer, findDeserializer, findFormatFeature, findFormatOverrides, findValueNullProvider, getValueInstantiator, getValueType, getValueType, handledType, handleMissingEndArrayForSingle, handleNestedArrayForSingle, handleUnknownProperty, isDefaultDeserializer, isDefaultKeyDeserializer

    Methods inherited from class tools.jackson.databind.ValueDeserializer

    createContextual, deserializeWithType, findBackReference, getAbsentValue, getDelegatee, getEmptyAccessPattern, getEmptyValue, getKnownPropertyNames, getNullAccessPattern, getNullValue, getObjectIdReader, isCachable, logicalType, replaceDelegatee, supportsUpdate, unwrappingDeserializer

    Methods inherited from class java.lang.Object

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

    • MessageJsonDeserializer

      protected MessageJsonDeserializer(Class<T> targetType)
  • Method Details

    • setMapper

      public void setMapper(tools.jackson.databind.json.JsonMapper mapper)
    • setPayloadType

      protected final void setPayloadType(tools.jackson.databind.JavaType payloadType)
    • getMapper

      protected tools.jackson.databind.json.JsonMapper getMapper()
    • deserializeWithType

      public Object deserializeWithType(tools.jackson.core.JsonParser jp, tools.jackson.databind.DeserializationContext ctxt, tools.jackson.databind.jsontype.TypeDeserializer td) throws tools.jackson.core.JacksonException
      Overrides:
      deserializeWithType in class tools.jackson.databind.deser.std.StdNodeBasedDeserializer<T extends Message<?>>
      Throws:
      tools.jackson.core.JacksonException
    • convert

      public T convert(tools.jackson.databind.JsonNode root, tools.jackson.databind.DeserializationContext ctxt) throws tools.jackson.core.JacksonException
      Specified by:
      convert in class tools.jackson.databind.deser.std.StdNodeBasedDeserializer<T extends Message<?>>
      Throws:
      tools.jackson.core.JacksonException
    • buildMessage

      protected abstract T buildMessage(MutableMessageHeaders headers, Object payload, tools.jackson.databind.JsonNode root, tools.jackson.databind.DeserializationContext ctxt) throws tools.jackson.core.JacksonException
      Throws:
      tools.jackson.core.JacksonException