public class FlatteningSerializer extends com.fasterxml.jackson.databind.ser.std.StdSerializer<Object> implements com.fasterxml.jackson.databind.ser.ResolvableSerializer
Modifier | Constructor and Description |
---|---|
protected |
FlatteningSerializer(Class<?> vc,
com.fasterxml.jackson.databind.JsonSerializer<?> defaultSerializer,
com.fasterxml.jackson.databind.ObjectMapper mapper)
Creates an instance of FlatteningSerializer.
|
Modifier and Type | Method and Description |
---|---|
static com.fasterxml.jackson.databind.module.SimpleModule |
getModule(com.fasterxml.jackson.databind.ObjectMapper mapper)
Gets a module wrapping this serializer as an adapter for the Jackson
ObjectMapper.
|
void |
resolve(com.fasterxml.jackson.databind.SerializerProvider provider) |
void |
serialize(Object value,
com.fasterxml.jackson.core.JsonGenerator jgen,
com.fasterxml.jackson.databind.SerializerProvider provider) |
_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
protected FlatteningSerializer(Class<?> vc, com.fasterxml.jackson.databind.JsonSerializer<?> defaultSerializer, com.fasterxml.jackson.databind.ObjectMapper mapper)
vc
- handled typedefaultSerializer
- the default JSON serializermapper
- the object mapper for default serializationspublic static com.fasterxml.jackson.databind.module.SimpleModule getModule(com.fasterxml.jackson.databind.ObjectMapper mapper)
mapper
- the object mapper for default serializationspublic void serialize(Object value, com.fasterxml.jackson.core.JsonGenerator jgen, com.fasterxml.jackson.databind.SerializerProvider provider) throws IOException
serialize
in class com.fasterxml.jackson.databind.ser.std.StdSerializer<Object>
IOException
public void resolve(com.fasterxml.jackson.databind.SerializerProvider provider) throws com.fasterxml.jackson.databind.JsonMappingException
resolve
in interface com.fasterxml.jackson.databind.ser.ResolvableSerializer
com.fasterxml.jackson.databind.JsonMappingException
Copyright © 2019. All rights reserved.