Class 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 via RestList or RestEntity serialization path.

    Since:
    5.7
    • Nested Class Summary

      • Nested classes/interfaces inherited from class org.codehaus.jackson.map.JsonSerializer

        org.codehaus.jackson.map.JsonSerializer.None
    • Field Summary

      • Fields inherited from class org.codehaus.jackson.map.ser.std.SerializerBase

        _handledType
    • 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
      • Methods inherited from class org.codehaus.jackson.map.JsonSerializer

        isUnwrappingSerializer, serializeWithType, unwrappingSerializer
    • Constructor Detail

      • PageResponseSerializer

        public PageResponseSerializer()
    • 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 class org.codehaus.jackson.map.ser.std.SerializerBase<PageResponse<?>>
        Throws:
        IOException