Class PageResponseSerializer
- java.lang.Object
-
- org.codehaus.jackson.map.JsonSerializer<T>
-
- org.codehaus.jackson.map.ser.std.SerializerBase<PageResponse<?>>
-
- com.atlassian.confluence.rest.serialization.PageResponseSerializer
-
- All Implemented Interfaces:
org.codehaus.jackson.schema.SchemaAware
public class PageResponseSerializer extends org.codehaus.jackson.map.ser.std.SerializerBase<PageResponse<?>>
A Serializer that can handle PageResponses, that also includes special case logic to handle RestList's enriched properties.Seems like this code path is used only within tests. Whereas in production because of
EnricherResourceFilterFactory
RestEntityConverter
is applied to each response before it gets serialized forcing it to pass viaRestList
orRestEntity
serialization path.- Since:
- 5.7
-
-
Constructor Summary
Constructors Constructor Description PageResponseSerializer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
serialize(PageResponse<?> value, org.codehaus.jackson.JsonGenerator jsonGen, org.codehaus.jackson.map.SerializerProvider provider)
-
Methods inherited from class org.codehaus.jackson.map.ser.std.SerializerBase
createObjectNode, createSchemaNode, createSchemaNode, getSchema, handledType, isDefaultSerializer, wrapAndThrow, wrapAndThrow, wrapAndThrow, wrapAndThrow
-
-
-
-
Method Detail
-
serialize
public void serialize(PageResponse<?> value, org.codehaus.jackson.JsonGenerator jsonGen, org.codehaus.jackson.map.SerializerProvider provider) throws IOException
- Specified by:
serialize
in classorg.codehaus.jackson.map.ser.std.SerializerBase<PageResponse<?>>
- Throws:
IOException
-
-