public static class Jackson2HalModule.HalLinkListSerializer extends com.fasterxml.jackson.databind.ser.ContainerSerializer<List<Link>> implements com.fasterxml.jackson.databind.ser.ContextualSerializer
JsonSerializer
to render Link instances in HAL compatible JSON.Constructor and Description |
---|
HalLinkListSerializer(com.fasterxml.jackson.databind.BeanProperty property,
CurieProvider curieProvider) |
HalLinkListSerializer(CurieProvider curieProvider) |
Modifier and Type | Method and Description |
---|---|
protected com.fasterxml.jackson.databind.ser.ContainerSerializer<?> |
_withValueTypeSerializer(com.fasterxml.jackson.databind.jsontype.TypeSerializer vts) |
com.fasterxml.jackson.databind.JsonSerializer<?> |
createContextual(com.fasterxml.jackson.databind.SerializerProvider provider,
com.fasterxml.jackson.databind.BeanProperty property) |
com.fasterxml.jackson.databind.JsonSerializer<?> |
getContentSerializer() |
com.fasterxml.jackson.databind.JavaType |
getContentType() |
boolean |
hasSingleElement(List<Link> value) |
boolean |
isEmpty(com.fasterxml.jackson.databind.SerializerProvider provider,
List<Link> value) |
void |
serialize(List<Link> value,
com.fasterxml.jackson.core.JsonGenerator jgen,
com.fasterxml.jackson.databind.SerializerProvider provider) |
hasContentTypeAnnotation, isEmpty, withValueTypeSerializer
acceptJsonFormatVisitor, createObjectNode, createSchemaNode, createSchemaNode, findConvertingContentSerializer, findPropertyFilter, getSchema, getSchema, handledType, isDefaultSerializer, wrapAndThrow, wrapAndThrow
public HalLinkListSerializer(CurieProvider curieProvider)
public HalLinkListSerializer(com.fasterxml.jackson.databind.BeanProperty property, CurieProvider curieProvider)
public void serialize(List<Link> value, com.fasterxml.jackson.core.JsonGenerator jgen, com.fasterxml.jackson.databind.SerializerProvider provider) throws IOException, com.fasterxml.jackson.core.JsonGenerationException
serialize
in class com.fasterxml.jackson.databind.ser.std.StdSerializer<List<Link>>
IOException
com.fasterxml.jackson.core.JsonGenerationException
public 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.ContextualSerializer
com.fasterxml.jackson.databind.JsonMappingException
public com.fasterxml.jackson.databind.JavaType getContentType()
public com.fasterxml.jackson.databind.JsonSerializer<?> getContentSerializer()
public boolean isEmpty(com.fasterxml.jackson.databind.SerializerProvider provider, List<Link> value)
Copyright © 2012-2015–2015 Pivotal, Inc.. All rights reserved.