Package co.elastic.clients.json.jackson
Class Jackson3JsonpMapper
java.lang.Object
co.elastic.clients.json.JsonpMapperBase
co.elastic.clients.json.jackson.Jackson3JsonpMapper
- All Implemented Interfaces:
BufferingJsonpMapper,JsonpMapper
-
Nested Class Summary
Nested classes/interfaces inherited from class co.elastic.clients.json.JsonpMapperBase
JsonpMapperBase.JsonpSerializableSerializer<T extends JsonpSerializable>, JsonpMapperBase.JsonpValueSerializer -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected <T> JsonpDeserializer<T>getDefaultDeserializer(Type type) Get a serializer when none of the builtin ones are applicablejakarta.json.spi.JsonProviderReturn the JSON-P provider, to create JSON parsers and generators.tools.jackson.databind.json.JsonMapperReturns the underlying Jackson mapper.<T> voidserialize(T value, jakarta.json.stream.JsonGenerator generator) Serialize an object.<T> JsonpMapperwithAttribute(String name, T value) Create a new mapper with an additional attribute.Methods inherited from class co.elastic.clients.json.JsonpMapperBase
addAttribute, attribute, deserialize, deserialize, findDeserializer, findDeserializer, findSerializerMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface co.elastic.clients.json.JsonpMapper
attribute, attribute, deserialize, deserialize, deserialize, deserialize, ignoreUnknownFields
-
Constructor Details
-
Jackson3JsonpMapper
public Jackson3JsonpMapper(tools.jackson.databind.json.JsonMapper objectMapper) -
Jackson3JsonpMapper
public Jackson3JsonpMapper()
-
-
Method Details
-
withAttribute
Description copied from interface:JsonpMapperCreate a new mapper with an additional attribute.The
JsonpMapperFeaturesclass contains the names of attributes that all implementations ofJsonpMappermust implement.- Specified by:
withAttributein interfaceJsonpMapper- See Also:
-
objectMapper
public tools.jackson.databind.json.JsonMapper objectMapper()Returns the underlying Jackson mapper. -
jsonProvider
public jakarta.json.spi.JsonProvider jsonProvider()Description copied from interface:JsonpMapperReturn the JSON-P provider, to create JSON parsers and generators.- Specified by:
jsonProviderin interfaceJsonpMapper
-
getDefaultDeserializer
Description copied from class:JsonpMapperBaseGet a serializer when none of the builtin ones are applicable- Specified by:
getDefaultDeserializerin classJsonpMapperBase
-
serialize
public <T> void serialize(T value, jakarta.json.stream.JsonGenerator generator) Description copied from interface:JsonpMapperSerialize an object.- Specified by:
serializein interfaceJsonpMapper
-
createBufferingGenerator
- Specified by:
createBufferingGeneratorin interfaceBufferingJsonpMapper
-