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 -
Method Summary
Modifier and TypeMethodDescriptionvoid
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
-
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 classtools.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 classtools.jackson.databind.ser.std.StdSerializer<MessageHeaders>
- Throws:
tools.jackson.core.JacksonException
-