Package co.elastic.clients.json.jackson
Class JacksonJsonpMapper
java.lang.Object
co.elastic.clients.json.JsonpMapperBase
co.elastic.clients.json.jackson.JacksonJsonpMapper
- 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
ConstructorsConstructorDescriptionJacksonJsonpMapper
(com.fasterxml.jackson.databind.ObjectMapper objectMapper) -
Method Summary
Modifier and TypeMethodDescriptionprotected <T> JsonpDeserializer<T>
getDefaultDeserializer
(Type type) Get a serializer when none of the builtin ones are applicablejakarta.json.spi.JsonProvider
Return the JSON-P provider, to create JSON parsers and generators.com.fasterxml.jackson.databind.ObjectMapper
Returns the underlying Jackson mapper.<T> void
serialize
(T value, jakarta.json.stream.JsonGenerator generator) Serialize an object.<T> JsonpMapper
withAttribute
(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, findSerializer
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface co.elastic.clients.json.JsonpMapper
attribute, attribute, deserialize, deserialize, deserialize, deserialize, ignoreUnknownFields
-
Constructor Details
-
JacksonJsonpMapper
public JacksonJsonpMapper(com.fasterxml.jackson.databind.ObjectMapper objectMapper) -
JacksonJsonpMapper
public JacksonJsonpMapper()
-
-
Method Details
-
withAttribute
Description copied from interface:JsonpMapper
Create a new mapper with an additional attribute.The
JsonpMapperFeatures
class contains the names of attributes that all implementations ofJsonpMapper
must implement.- Specified by:
withAttribute
in interfaceJsonpMapper
- See Also:
-
objectMapper
public com.fasterxml.jackson.databind.ObjectMapper objectMapper()Returns the underlying Jackson mapper. -
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 interfaceJsonpMapper
-
getDefaultDeserializer
Description copied from class:JsonpMapperBase
Get a serializer when none of the builtin ones are applicable- Specified by:
getDefaultDeserializer
in classJsonpMapperBase
-
serialize
public <T> void serialize(T value, jakarta.json.stream.JsonGenerator generator) Description copied from interface:JsonpMapper
Serialize an object.- Specified by:
serialize
in interfaceJsonpMapper
-
createBufferingGenerator
- Specified by:
createBufferingGenerator
in interfaceBufferingJsonpMapper
-