Class JsonApiRelationshipSerializer
- java.lang.Object
-
- com.fasterxml.jackson.databind.JsonSerializer<T>
-
- com.fasterxml.jackson.databind.ser.std.StdSerializer<T>
-
- com.fasterxml.jackson.databind.ser.ContainerSerializer<T>
-
- com.toedter.spring.hateoas.jsonapi.JsonApiRelationshipSerializer
-
- All Implemented Interfaces:
com.fasterxml.jackson.databind.jsonFormatVisitors.JsonFormatVisitable
,com.fasterxml.jackson.databind.jsonschema.SchemaAware
,java.io.Serializable
public class JsonApiRelationshipSerializer extends com.fasterxml.jackson.databind.ser.ContainerSerializer<T>
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description JsonApiRelationshipSerializer(JsonApiConfiguration jsonApiConfiguration)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected com.fasterxml.jackson.databind.ser.ContainerSerializer<?>
_withValueTypeSerializer(com.fasterxml.jackson.databind.jsontype.TypeSerializer vts)
com.fasterxml.jackson.databind.JsonSerializer<?>
getContentSerializer()
com.fasterxml.jackson.databind.JavaType
getContentType()
boolean
hasSingleElement(T value)
void
serialize(com.toedter.spring.hateoas.jsonapi.JsonApiRelationship value, com.fasterxml.jackson.core.JsonGenerator gen, com.fasterxml.jackson.databind.SerializerProvider provider)
-
Methods inherited from class com.fasterxml.jackson.databind.ser.ContainerSerializer
hasContentTypeAnnotation, withValueTypeSerializer
-
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
-
JsonApiRelationshipSerializer
public JsonApiRelationshipSerializer(JsonApiConfiguration jsonApiConfiguration)
-
-
Method Detail
-
serialize
public void serialize(com.toedter.spring.hateoas.jsonapi.JsonApiRelationship value, com.fasterxml.jackson.core.JsonGenerator gen, com.fasterxml.jackson.databind.SerializerProvider provider) throws java.io.IOException
- Specified by:
serialize
in classcom.fasterxml.jackson.databind.ser.std.StdSerializer<com.toedter.spring.hateoas.jsonapi.JsonApiRelationship>
- Throws:
java.io.IOException
-
getContentType
public com.fasterxml.jackson.databind.JavaType getContentType()
- Specified by:
getContentType
in classcom.fasterxml.jackson.databind.ser.ContainerSerializer<T>
-
getContentSerializer
public com.fasterxml.jackson.databind.JsonSerializer<?> getContentSerializer()
- Specified by:
getContentSerializer
in classcom.fasterxml.jackson.databind.ser.ContainerSerializer<T>
-
hasSingleElement
public boolean hasSingleElement(T value)
- Specified by:
hasSingleElement
in classcom.fasterxml.jackson.databind.ser.ContainerSerializer<T>
-
_withValueTypeSerializer
protected com.fasterxml.jackson.databind.ser.ContainerSerializer<?> _withValueTypeSerializer(com.fasterxml.jackson.databind.jsontype.TypeSerializer vts)
- Specified by:
_withValueTypeSerializer
in classcom.fasterxml.jackson.databind.ser.ContainerSerializer<T>
-
-