Class ContractualSituationListDeserializer

java.lang.Object
tools.jackson.databind.ValueDeserializer<List<ContractualSituation>>
energy.eddie.regionconnector.fr.enedis.dto.situation.ContractualSituationListDeserializer
All Implemented Interfaces:
tools.jackson.databind.deser.NullValueProvider

public class ContractualSituationListDeserializer extends tools.jackson.databind.ValueDeserializer<List<ContractualSituation>>
Reads the situation contractuelle response whether Enedis wraps it in an array (what it actually returns) or sends a bare object.

A type mismatch here aborts the whole master-data fetch and the permission request never reaches a terminal status, so accepting both shapes costs little and keeps the connector working if the wrapper changes.

  • Nested Class Summary

    Nested classes/interfaces inherited from class tools.jackson.databind.ValueDeserializer

    tools.jackson.databind.ValueDeserializer.None
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    deserialize(tools.jackson.core.JsonParser p, tools.jackson.databind.DeserializationContext ctxt)
     

    Methods inherited from class tools.jackson.databind.ValueDeserializer

    createContextual, deserialize, deserializeWithType, deserializeWithType, findBackReference, getAbsentValue, getDelegatee, getEmptyAccessPattern, getEmptyValue, getKnownPropertyNames, getNullAccessPattern, getNullValue, getObjectIdReader, handledType, isCachable, logicalType, replaceDelegatee, resolve, supportsUpdate, unwrappingDeserializer

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • ContractualSituationListDeserializer

      public ContractualSituationListDeserializer()
  • Method Details

    • deserialize

      public List<ContractualSituation> deserialize(tools.jackson.core.JsonParser p, tools.jackson.databind.DeserializationContext ctxt)
      Specified by:
      deserialize in class tools.jackson.databind.ValueDeserializer<List<ContractualSituation>>