Class StampedMessageSerializer
- java.lang.Object
-
- com.fasterxml.jackson.databind.JsonSerializer<T>
-
- com.fasterxml.jackson.databind.ser.std.StdSerializer<StampedMessage>
-
- com.identityworksllc.iiq.common.vo.StampedMessageSerializer
-
- All Implemented Interfaces:
com.fasterxml.jackson.databind.jsonFormatVisitors.JsonFormatVisitable
,com.fasterxml.jackson.databind.jsonschema.SchemaAware
,Serializable
public class StampedMessageSerializer extends com.fasterxml.jackson.databind.ser.std.StdSerializer<StampedMessage>
Custom serializer for StampedMessage outputs, to avoid having to let Jackson figure out how to serialize the Throwable object.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description StampedMessageSerializer()
Constructs a new StampedMessageSerializerStampedMessageSerializer(Class<StampedMessage> t)
Constructs a new serializer
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
serialize(StampedMessage value, com.fasterxml.jackson.core.JsonGenerator gen, com.fasterxml.jackson.databind.SerializerProvider provider)
-
Methods inherited from class com.fasterxml.jackson.databind.ser.std.StdSerializer
_neitherNull, _nonEmpty, acceptJsonFormatVisitor, createSchemaNode, createSchemaNode, findAnnotatedContentSerializer, findContextualConvertingSerializer, findConvertingContentSerializer, findFormatFeature, findFormatOverrides, findIncludeOverrides, findPropertyFilter, getSchema, getSchema, handledType, isDefaultSerializer, visitArrayFormat, visitArrayFormat, visitFloatFormat, visitIntFormat, visitIntFormat, visitStringFormat, visitStringFormat, wrapAndThrow, wrapAndThrow
-
-
-
-
Constructor Detail
-
StampedMessageSerializer
public StampedMessageSerializer()
Constructs a new StampedMessageSerializer
-
StampedMessageSerializer
public StampedMessageSerializer(Class<StampedMessage> t)
Constructs a new serializer- Parameters:
t
- The input type
-
-
Method Detail
-
serialize
public void serialize(StampedMessage value, com.fasterxml.jackson.core.JsonGenerator gen, com.fasterxml.jackson.databind.SerializerProvider provider) throws IOException
- Specified by:
serialize
in classcom.fasterxml.jackson.databind.ser.std.StdSerializer<StampedMessage>
- Throws:
IOException
-
-