Class PageableJsonDeserializer

  • All Implemented Interfaces:
    com.fasterxml.jackson.databind.deser.NullValueProvider

    public class PageableJsonDeserializer
    extends com.fasterxml.jackson.databind.JsonDeserializer<org.springframework.data.domain.Pageable>
    JsonDeserializer to deserialize Pageable objects from JSON.
    Since:
    3.0.1
    • Constructor Detail

      • PageableJsonDeserializer

        public PageableJsonDeserializer()
    • Method Detail

      • deserialize

        public org.springframework.data.domain.Pageable deserialize​(com.fasterxml.jackson.core.JsonParser jp,
                                                                    com.fasterxml.jackson.databind.DeserializationContext ctxt)
                                                             throws IOException,
                                                                    com.fasterxml.jackson.core.JsonProcessingException
        Specified by:
        deserialize in class com.fasterxml.jackson.databind.JsonDeserializer<org.springframework.data.domain.Pageable>
        Throws:
        IOException
        com.fasterxml.jackson.core.JsonProcessingException
      • getRequiredValue

        private static String getRequiredValue​(com.fasterxml.jackson.databind.JsonNode node,
                                               String property)
      • getValue

        private static String getValue​(com.fasterxml.jackson.databind.JsonNode node,
                                       String property)