Class EnrichedMapDeserializer
- java.lang.Object
-
- org.codehaus.jackson.map.JsonDeserializer<T>
-
- org.codehaus.jackson.map.deser.std.StdDeserializer<T>
-
- org.codehaus.jackson.map.deser.std.ContainerDeserializerBase<Map<Object,Object>>
-
- org.codehaus.jackson.map.deser.std.MapDeserializer
-
- com.atlassian.confluence.rest.serialization.MapAndKeyValuePairDeserializer
-
- com.atlassian.confluence.rest.serialization.EnrichedMapDeserializer
-
- All Implemented Interfaces:
org.codehaus.jackson.map.ResolvableDeserializer
public class EnrichedMapDeserializer extends MapAndKeyValuePairDeserializer
Deserializes maps that have been enriched with extra properties such as _links and _expandable.These maps need a custom deserializer because the _ underscore-prefixed properties will not deserialise to legitimate map keys - they'll either throw exceptions or return garbage values.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.codehaus.jackson.map.deser.std.StdDeserializer
org.codehaus.jackson.map.deser.std.StdDeserializer.BigDecimalDeserializer, org.codehaus.jackson.map.deser.std.StdDeserializer.BigIntegerDeserializer, org.codehaus.jackson.map.deser.std.StdDeserializer.BooleanDeserializer, org.codehaus.jackson.map.deser.std.StdDeserializer.ByteDeserializer, org.codehaus.jackson.map.deser.std.StdDeserializer.CharacterDeserializer, org.codehaus.jackson.map.deser.std.StdDeserializer.DoubleDeserializer, org.codehaus.jackson.map.deser.std.StdDeserializer.FloatDeserializer, org.codehaus.jackson.map.deser.std.StdDeserializer.IntegerDeserializer, org.codehaus.jackson.map.deser.std.StdDeserializer.LongDeserializer, org.codehaus.jackson.map.deser.std.StdDeserializer.NumberDeserializer, org.codehaus.jackson.map.deser.std.StdDeserializer.PrimitiveOrWrapperDeserializer<T extends Object>, org.codehaus.jackson.map.deser.std.StdDeserializer.ShortDeserializer, org.codehaus.jackson.map.deser.std.StdDeserializer.SqlDateDeserializer, org.codehaus.jackson.map.deser.std.StdDeserializer.StackTraceElementDeserializer
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Map<Object,Object>
deserialize(org.codehaus.jackson.JsonParser jp, org.codehaus.jackson.map.DeserializationContext ctxt)
Map<Object,Object>
deserialize(org.codehaus.jackson.JsonParser jp, org.codehaus.jackson.map.DeserializationContext ctxt, Map<Object,Object> result)
static org.codehaus.jackson.map.JsonDeserializer<?>
make(org.codehaus.jackson.map.type.MapType type, org.codehaus.jackson.map.DeserializationConfig config, org.codehaus.jackson.map.DeserializerProvider provider, org.codehaus.jackson.map.BeanProperty property, org.codehaus.jackson.map.KeyDeserializer keyDeserializer, org.codehaus.jackson.map.TypeDeserializer elementTypeDeserializer, org.codehaus.jackson.map.JsonDeserializer<?> elementDeserializer)
-
Methods inherited from class org.codehaus.jackson.map.deser.std.MapDeserializer
_deserializeUsingCreator, _readAndBind, deserializeWithType, getContentDeserializer, getContentType, getMapClass, getValueType, resolve, setIgnorableProperties, wrapAndThrow
-
Methods inherited from class org.codehaus.jackson.map.deser.std.StdDeserializer
_parseBoolean, _parseBooleanFromNumber, _parseBooleanPrimitive, _parseByte, _parseDate, _parseDouble, _parseDoublePrimitive, _parseFloat, _parseFloatPrimitive, _parseInteger, _parseIntPrimitive, _parseLong, _parseLongPrimitive, _parseShort, _parseShortPrimitive, findDeserializer, getValueClass, handleUnknownProperty, isDefaultSerializer, parseDouble, reportUnknownProperty
-
-
-
-
Method Detail
-
make
public static org.codehaus.jackson.map.JsonDeserializer<?> make(org.codehaus.jackson.map.type.MapType type, org.codehaus.jackson.map.DeserializationConfig config, org.codehaus.jackson.map.DeserializerProvider provider, org.codehaus.jackson.map.BeanProperty property, org.codehaus.jackson.map.KeyDeserializer keyDeserializer, org.codehaus.jackson.map.TypeDeserializer elementTypeDeserializer, org.codehaus.jackson.map.JsonDeserializer<?> elementDeserializer) throws org.codehaus.jackson.map.JsonMappingException
- Throws:
org.codehaus.jackson.map.JsonMappingException
-
deserialize
public Map<Object,Object> deserialize(org.codehaus.jackson.JsonParser jp, org.codehaus.jackson.map.DeserializationContext ctxt) throws IOException
- Overrides:
deserialize
in classMapAndKeyValuePairDeserializer
- Throws:
IOException
-
deserialize
public Map<Object,Object> deserialize(org.codehaus.jackson.JsonParser jp, org.codehaus.jackson.map.DeserializationContext ctxt, Map<Object,Object> result) throws IOException
- Overrides:
deserialize
in classMapAndKeyValuePairDeserializer
- Throws:
IOException
-
-