Class MessageSourceResolvableSerializer
java.lang.Object
tools.jackson.databind.ValueSerializer<T>
tools.jackson.databind.ser.std.StdSerializer<org.springframework.context.MessageSourceResolvable>
org.springframework.hateoas.mediatype.MessageSourceResolvableSerializer
- All Implemented Interfaces:
tools.jackson.databind.jsonFormatVisitors.JsonFormatVisitable
public class MessageSourceResolvableSerializer
extends tools.jackson.databind.ser.std.StdSerializer<org.springframework.context.MessageSourceResolvable>
A Jackson serializer triggering message resolution via a
MessageResolver for MessageSourceResolvable
instances about to be serialized.- Since:
- 1.3
- Author:
- Oliver Drotbohm
-
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
ConstructorsConstructorDescriptionCreates a newMessageSourceResolvableSerializerfor the givenMessageResolver. -
Method Summary
Modifier and TypeMethodDescriptionvoidserialize(org.springframework.context.MessageSourceResolvable value, tools.jackson.core.JsonGenerator gen, tools.jackson.databind.SerializationContext provider) 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, wrapAndThrowMethods inherited from class tools.jackson.databind.ValueSerializer
createContextual, getDelegatee, isEmpty, isUnwrappingSerializer, properties, replaceDelegatee, resolve, serializeWithType, unwrappingSerializer, usesObjectId, withFilterId, withFormatOverrides, withIgnoredProperties
-
Constructor Details
-
MessageSourceResolvableSerializer
Creates a newMessageSourceResolvableSerializerfor the givenMessageResolver.- Parameters:
resolver- must not be null.
-
-
Method Details
-
serialize
public void serialize(org.springframework.context.MessageSourceResolvable value, tools.jackson.core.JsonGenerator gen, tools.jackson.databind.SerializationContext provider) - Specified by:
serializein classtools.jackson.databind.ser.std.StdSerializer<org.springframework.context.MessageSourceResolvable>
-