Class DelegatingJsonpMapper

java.lang.Object
co.elastic.clients.json.DelegatingJsonpMapper
All Implemented Interfaces:
JsonpMapper

public abstract class DelegatingJsonpMapper extends Object implements JsonpMapper
  • Field Details

  • Constructor Details

    • DelegatingJsonpMapper

      public DelegatingJsonpMapper(JsonpMapper mapper)
  • Method Details

    • jsonProvider

      public jakarta.json.spi.JsonProvider jsonProvider()
      Description copied from interface: JsonpMapper
      Return the JSON-P provider, to create JSON parsers and generators.
      Specified by:
      jsonProvider in interface JsonpMapper
    • deserialize

      public <T> T deserialize(jakarta.json.stream.JsonParser parser, Type type)
      Description copied from interface: JsonpMapper
      Deserialize an object, given its type.
      Specified by:
      deserialize in interface JsonpMapper
    • serialize

      public <T> void serialize(T value, jakarta.json.stream.JsonGenerator generator)
      Description copied from interface: JsonpMapper
      Serialize an object.
      Specified by:
      serialize in interface JsonpMapper
    • ignoreUnknownFields

      public boolean ignoreUnknownFields()
      Description copied from interface: JsonpMapper
      Should object parsers in the API client be lenient and silently ignore unknown fields?
      Specified by:
      ignoreUnknownFields in interface JsonpMapper
      Returns:
      true by default.
    • attribute

      @Nullable public <T> T attribute(String name)
      Description copied from interface: JsonpMapper
      Get a named attribute associated to this mapper.
      Specified by:
      attribute in interface JsonpMapper