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
-
Nested Class Summary
Nested classes/interfaces inherited from class com.fasterxml.jackson.databind.JsonDeserializer
com.fasterxml.jackson.databind.JsonDeserializer.None
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondeserialize
(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 Details
-
DownloadRequestSerde
public DownloadRequestSerde()
-
-
Method Details
-
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
-