Class MessageHeadersJsonSerializer

java.lang.Object
tools.jackson.databind.ValueSerializer<MessageHeaders>
tools.jackson.databind.ser.std.StdSerializer<MessageHeaders>
org.springframework.integration.support.json.MessageHeadersJsonSerializer
All Implemented Interfaces:
tools.jackson.databind.jsonFormatVisitors.JsonFormatVisitable

public class MessageHeadersJsonSerializer extends tools.jackson.databind.ser.std.StdSerializer<MessageHeaders>
A Jackson StdSerializer implementation to serialize MessageHeaders as a HashMap.

This technique is much reliable during deserialization, especially when the typeId property is used to store the type.

Since:
7.0
Author:
Jooyoung Pyoung
  • Nested Class Summary

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

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

    Fields inherited from class tools.jackson.databind.ser.std.StdSerializer

    _handledType
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    serialize(MessageHeaders value, tools.jackson.core.JsonGenerator gen, tools.jackson.databind.SerializationContext provider)
     
    void
    serializeWithType(MessageHeaders value, tools.jackson.core.JsonGenerator gen, tools.jackson.databind.SerializationContext ctxt, tools.jackson.databind.jsontype.TypeSerializer typeSer)
     

    Methods inherited from class tools.jackson.databind.ser.std.StdSerializer

    _neitherNull, _nonEmpty, _wrapIOFailure, acceptJsonFormatVisitor, acceptJsonFormatVisitorForBinary, createSchemaNode, createSchemaNode, findAnnotatedContentSerializer, findContextualConvertingSerializer, findFormatFeature, findFormatOverrides, findIncludeOverrides, findPropertyFilter, handledType, isDefaultSerializer, visitArrayFormat, visitArrayFormat, visitFloatFormat, visitIntFormat, visitIntFormat, visitStringFormat, visitStringFormat, wrapAndThrow, wrapAndThrow

    Methods inherited from class tools.jackson.databind.ValueSerializer

    createContextual, getDelegatee, isEmpty, isUnwrappingSerializer, properties, replaceDelegatee, resolve, unwrappingSerializer, usesObjectId, withFilterId, withFormatOverrides, withIgnoredProperties

    Methods inherited from class java.lang.Object

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

    • MessageHeadersJsonSerializer

      public MessageHeadersJsonSerializer()
  • Method Details

    • serializeWithType

      public void serializeWithType(MessageHeaders value, tools.jackson.core.JsonGenerator gen, tools.jackson.databind.SerializationContext ctxt, tools.jackson.databind.jsontype.TypeSerializer typeSer) throws tools.jackson.core.JacksonException
      Overrides:
      serializeWithType in class tools.jackson.databind.ValueSerializer<MessageHeaders>
      Throws:
      tools.jackson.core.JacksonException
    • serialize

      public void serialize(MessageHeaders value, tools.jackson.core.JsonGenerator gen, tools.jackson.databind.SerializationContext provider) throws tools.jackson.core.JacksonException
      Specified by:
      serialize in class tools.jackson.databind.ser.std.StdSerializer<MessageHeaders>
      Throws:
      tools.jackson.core.JacksonException