Package org.gbif.api.jackson
Class DownloadRequestSerde
- java.lang.Object
-
- com.fasterxml.jackson.databind.JsonDeserializer<DownloadRequest>
-
- org.gbif.api.jackson.DownloadRequestSerde
-
- All Implemented Interfaces:
com.fasterxml.jackson.databind.deser.NullValueProvider
public class DownloadRequestSerde extends com.fasterxml.jackson.databind.JsonDeserializer<DownloadRequest>
Download request deserializer.For most of the time, the serialization has been to "notificationAddresses" and "sendNotification". For a few months in 2018-2019, it was "notification_address" and "send_notification".
The API documentation has previously specified "notification_address" and "sendNotification".
We therefore accept all combinations.
https://github.com/gbif/portal-feedback/issues/2046
-
-
Constructor Summary
Constructors Constructor Description DownloadRequestSerde()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DownloadRequest
deserialize(com.fasterxml.jackson.core.JsonParser jp, 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
-
-
-
-
Constructor Detail
-
DownloadRequestSerde
public DownloadRequestSerde()
-
-
Method Detail
-
deserialize
public DownloadRequest deserialize(com.fasterxml.jackson.core.JsonParser jp, com.fasterxml.jackson.databind.DeserializationContext ctxt) throws IOException
- Specified by:
deserialize
in classcom.fasterxml.jackson.databind.JsonDeserializer<DownloadRequest>
- Throws:
IOException
-
-