Class PageableJsonDeserializer
- java.lang.Object
-
- com.fasterxml.jackson.databind.JsonDeserializer<org.springframework.data.domain.Pageable>
-
- com.devonfw.module.json.common.base.type.PageableJsonDeserializer
-
- All Implemented Interfaces:
com.fasterxml.jackson.databind.deser.NullValueProvider
public class PageableJsonDeserializer extends com.fasterxml.jackson.databind.JsonDeserializer<org.springframework.data.domain.Pageable>JsonDeserializerto deserializePageableobjects from JSON.- Since:
- 3.0.1
-
-
Field Summary
Fields Modifier and Type Field Description (package private) static StringPROPERTY_DIRECTION(package private) static StringPROPERTY_PAGE_NUMBER(package private) static StringPROPERTY_PAGE_SIZE(package private) static StringPROPERTY_PROPERTY(package private) static StringPROPERTY_SORT
-
Constructor Summary
Constructors Constructor Description PageableJsonDeserializer()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description org.springframework.data.domain.Pageabledeserialize(com.fasterxml.jackson.core.JsonParser jp, com.fasterxml.jackson.databind.DeserializationContext ctxt)private static StringgetRequiredValue(com.fasterxml.jackson.databind.JsonNode node, String property)private static StringgetValue(com.fasterxml.jackson.databind.JsonNode node, String property)-
Methods inherited from class com.fasterxml.jackson.databind.JsonDeserializer
deserialize, deserializeWithType, findBackReference, getDelegatee, getEmptyAccessPattern, getEmptyValue, getEmptyValue, getKnownPropertyNames, getNullAccessPattern, getNullValue, getNullValue, getObjectIdReader, handledType, isCachable, replaceDelegatee, supportsUpdate, unwrappingDeserializer
-
-
-
-
Field Detail
-
PROPERTY_DIRECTION
static final String PROPERTY_DIRECTION
- See Also:
- Constant Field Values
-
PROPERTY_PROPERTY
static final String PROPERTY_PROPERTY
- See Also:
- Constant Field Values
-
PROPERTY_SORT
static final String PROPERTY_SORT
- See Also:
- Constant Field Values
-
PROPERTY_PAGE_SIZE
static final String PROPERTY_PAGE_SIZE
- See Also:
- Constant Field Values
-
PROPERTY_PAGE_NUMBER
static final String PROPERTY_PAGE_NUMBER
- See Also:
- Constant Field Values
-
-
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:
deserializein classcom.fasterxml.jackson.databind.JsonDeserializer<org.springframework.data.domain.Pageable>- Throws:
IOExceptioncom.fasterxml.jackson.core.JsonProcessingException
-
getRequiredValue
private static String getRequiredValue(com.fasterxml.jackson.databind.JsonNode node, String property)
-
-