public class JacksonHydraSerializer
extends com.fasterxml.jackson.databind.ser.std.BeanSerializerBase
| Modifier and Type | Field and Description |
|---|---|
static String |
KEY_LD_CONTEXT |
protected LdContextFactory |
ldContextFactory |
| Constructor and Description |
|---|
JacksonHydraSerializer(com.fasterxml.jackson.databind.ser.std.BeanSerializerBase source) |
JacksonHydraSerializer(com.fasterxml.jackson.databind.ser.std.BeanSerializerBase source,
com.fasterxml.jackson.databind.ser.impl.ObjectIdWriter objectIdWriter) |
JacksonHydraSerializer(com.fasterxml.jackson.databind.ser.std.BeanSerializerBase source,
ProxyUnwrapper proxyUnwrapper)
Creates new serializer with optional proxy unwrapper.
|
JacksonHydraSerializer(com.fasterxml.jackson.databind.ser.std.BeanSerializerBase source,
Set<String> toIgnore) |
| Modifier and Type | Method and Description |
|---|---|
protected com.fasterxml.jackson.databind.ser.std.BeanSerializerBase |
asArraySerializer() |
com.fasterxml.jackson.databind.JsonSerializer<?> |
createContextual(com.fasterxml.jackson.databind.SerializerProvider provider,
com.fasterxml.jackson.databind.BeanProperty property) |
void |
resolve(com.fasterxml.jackson.databind.SerializerProvider provider) |
void |
serialize(Object bean,
com.fasterxml.jackson.core.JsonGenerator jgen,
com.fasterxml.jackson.databind.SerializerProvider serializerProvider) |
void |
serialize(Object bean,
com.fasterxml.jackson.core.JsonGenerator jgen,
com.fasterxml.jackson.databind.SerializerProvider serializerProvider,
com.fasterxml.jackson.databind.jsontype.TypeSerializer typeSerializer) |
protected void |
serializeContext(Object bean,
com.fasterxml.jackson.core.JsonGenerator jgen,
com.fasterxml.jackson.databind.SerializerProvider serializerProvider,
Deque<LdContext> contextStack) |
protected void |
serializeType(Object bean,
com.fasterxml.jackson.core.JsonGenerator jgen,
com.fasterxml.jackson.databind.SerializerProvider provider) |
void |
serializeWithType(Object bean,
com.fasterxml.jackson.core.JsonGenerator gen,
com.fasterxml.jackson.databind.SerializerProvider provider,
com.fasterxml.jackson.databind.jsontype.TypeSerializer typeSer) |
com.fasterxml.jackson.databind.JsonSerializer<Object> |
unwrappingSerializer(com.fasterxml.jackson.databind.util.NameTransformer unwrapper) |
com.fasterxml.jackson.databind.ser.std.BeanSerializerBase |
withFilterId(Object filterId) |
protected com.fasterxml.jackson.databind.ser.std.BeanSerializerBase |
withIgnorals(Set<String> toIgnore) |
JacksonHydraSerializer |
withLdContextFactory(LdContextFactory factory) |
com.fasterxml.jackson.databind.ser.std.BeanSerializerBase |
withObjectIdWriter(com.fasterxml.jackson.databind.ser.impl.ObjectIdWriter objectIdWriter) |
_customTypeId, _serializeObjectId, _serializeWithObjectId, _serializeWithObjectId, _typeIdDef, acceptJsonFormatVisitor, findConvertingSerializer, getSchema, properties, serializeFields, serializeFieldsFiltered, usesObjectId, withIgnorals_neitherNull, _nonEmpty, createSchemaNode, createSchemaNode, findAnnotatedContentSerializer, findContextualConvertingSerializer, findConvertingContentSerializer, findFormatFeature, findFormatOverrides, findIncludeOverrides, findPropertyFilter, getSchema, handledType, isDefaultSerializer, visitArrayFormat, visitArrayFormat, visitFloatFormat, visitIntFormat, visitIntFormat, visitStringFormat, visitStringFormat, wrapAndThrow, wrapAndThrowgetDelegatee, isEmpty, isEmpty, isUnwrappingSerializer, replaceDelegateepublic static final String KEY_LD_CONTEXT
protected LdContextFactory ldContextFactory
public JacksonHydraSerializer(com.fasterxml.jackson.databind.ser.std.BeanSerializerBase source)
public JacksonHydraSerializer(com.fasterxml.jackson.databind.ser.std.BeanSerializerBase source,
ProxyUnwrapper proxyUnwrapper)
source - wrapped serializerproxyUnwrapper - to unwrap proxified beans, may be nullpublic JacksonHydraSerializer(com.fasterxml.jackson.databind.ser.std.BeanSerializerBase source,
com.fasterxml.jackson.databind.ser.impl.ObjectIdWriter objectIdWriter)
public com.fasterxml.jackson.databind.ser.std.BeanSerializerBase withObjectIdWriter(com.fasterxml.jackson.databind.ser.impl.ObjectIdWriter objectIdWriter)
withObjectIdWriter in class com.fasterxml.jackson.databind.ser.std.BeanSerializerBaseprotected com.fasterxml.jackson.databind.ser.std.BeanSerializerBase withIgnorals(Set<String> toIgnore)
withIgnorals in class com.fasterxml.jackson.databind.ser.std.BeanSerializerBaseprotected com.fasterxml.jackson.databind.ser.std.BeanSerializerBase asArraySerializer()
asArraySerializer in class com.fasterxml.jackson.databind.ser.std.BeanSerializerBasepublic com.fasterxml.jackson.databind.ser.std.BeanSerializerBase withFilterId(Object filterId)
withFilterId in class com.fasterxml.jackson.databind.ser.std.BeanSerializerBasepublic JacksonHydraSerializer withLdContextFactory(LdContextFactory factory)
public void serialize(Object bean, com.fasterxml.jackson.core.JsonGenerator jgen, com.fasterxml.jackson.databind.SerializerProvider serializerProvider) throws IOException
serialize in class com.fasterxml.jackson.databind.ser.std.BeanSerializerBaseIOExceptionpublic void serialize(Object bean, com.fasterxml.jackson.core.JsonGenerator jgen, com.fasterxml.jackson.databind.SerializerProvider serializerProvider, com.fasterxml.jackson.databind.jsontype.TypeSerializer typeSerializer) throws IOException
IOExceptionprotected void serializeType(Object bean, com.fasterxml.jackson.core.JsonGenerator jgen, com.fasterxml.jackson.databind.SerializerProvider provider) throws IOException
IOExceptionprotected void serializeContext(Object bean, com.fasterxml.jackson.core.JsonGenerator jgen, com.fasterxml.jackson.databind.SerializerProvider serializerProvider, Deque<LdContext> contextStack) throws IOException
IOExceptionpublic void serializeWithType(Object bean, com.fasterxml.jackson.core.JsonGenerator gen, com.fasterxml.jackson.databind.SerializerProvider provider, com.fasterxml.jackson.databind.jsontype.TypeSerializer typeSer) throws IOException
serializeWithType in class com.fasterxml.jackson.databind.ser.std.BeanSerializerBaseIOExceptionpublic com.fasterxml.jackson.databind.JsonSerializer<Object> unwrappingSerializer(com.fasterxml.jackson.databind.util.NameTransformer unwrapper)
unwrappingSerializer in class com.fasterxml.jackson.databind.JsonSerializer<Object>public void resolve(com.fasterxml.jackson.databind.SerializerProvider provider)
throws com.fasterxml.jackson.databind.JsonMappingException
resolve in interface com.fasterxml.jackson.databind.ser.ResolvableSerializerresolve in class com.fasterxml.jackson.databind.ser.std.BeanSerializerBasecom.fasterxml.jackson.databind.JsonMappingExceptionpublic com.fasterxml.jackson.databind.JsonSerializer<?> createContextual(com.fasterxml.jackson.databind.SerializerProvider provider,
com.fasterxml.jackson.databind.BeanProperty property)
throws com.fasterxml.jackson.databind.JsonMappingException
createContextual in interface com.fasterxml.jackson.databind.ser.ContextualSerializercreateContextual in class com.fasterxml.jackson.databind.ser.std.BeanSerializerBasecom.fasterxml.jackson.databind.JsonMappingExceptionCopyright © 2014–2019. All rights reserved.