Class TimeRestrictedAccess.OffsetDateTimeDeserializer
- java.lang.Object
-
- com.fasterxml.jackson.databind.JsonDeserializer<OffsetDateTime>
-
- io.apiman.gateway.engine.policies.config.TimeRestrictedAccess.OffsetDateTimeDeserializer
-
- All Implemented Interfaces:
com.fasterxml.jackson.databind.deser.NullValueProvider
- Enclosing class:
- TimeRestrictedAccess
public static class TimeRestrictedAccess.OffsetDateTimeDeserializer extends com.fasterxml.jackson.databind.JsonDeserializer<OffsetDateTime>
Custom deserializer as @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = TIME_PATTERN) is not able to parse the config string ("07:58:13") directly into the format that is currently need (1970-01-01T07:58:13Z)
-
-
Constructor Summary
Constructors Constructor Description OffsetDateTimeDeserializer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description OffsetDateTimedeserialize(com.fasterxml.jackson.core.JsonParser p, com.fasterxml.jackson.databind.DeserializationContext ctxt)-
Methods inherited from class com.fasterxml.jackson.databind.JsonDeserializer
deserialize, deserializeWithType, deserializeWithType, findBackReference, getAbsentValue, getDelegatee, getEmptyAccessPattern, getEmptyValue, getEmptyValue, getKnownPropertyNames, getNullAccessPattern, getNullValue, getNullValue, getObjectIdReader, handledType, isCachable, logicalType, replaceDelegatee, supportsUpdate, unwrappingDeserializer
-
-
-
-
Method Detail
-
deserialize
public OffsetDateTime deserialize(com.fasterxml.jackson.core.JsonParser p, com.fasterxml.jackson.databind.DeserializationContext ctxt) throws IOException
- Specified by:
deserializein classcom.fasterxml.jackson.databind.JsonDeserializer<OffsetDateTime>- Throws:
IOException
-
-