Class JacksonJsonpMapper
java.lang.Object
org.opensearch.client.json.JsonpMapperBase
org.opensearch.client.json.jackson.JacksonJsonpMapper
- All Implemented Interfaces:
JsonpMapper
-
Nested Class Summary
Nested classes/interfaces inherited from class org.opensearch.client.json.JsonpMapperBase
JsonpMapperBase.JsonpSerializableSerializer<T extends JsonpSerializable>, JsonpMapperBase.JsonpValueSerializer -
Constructor Summary
ConstructorsConstructorDescriptionJacksonJsonpMapper(com.fasterxml.jackson.databind.ObjectMapper objectMapper) JacksonJsonpMapper(com.fasterxml.jackson.databind.ObjectMapper objectMapper, com.fasterxml.jackson.core.JsonFactory jsonFactory) -
Method Summary
Modifier and TypeMethodDescriptionprotected <T> JsonpDeserializer<T> getDefaultDeserializer(Class<T> clazz) Get a serializer when none of the builtin ones are applicablejakarta.json.spi.JsonProviderReturn the JSON-P provider, to create JSON parsers and generators.com.fasterxml.jackson.databind.ObjectMapperReturns 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 a named attribute that delegates to this one.Methods inherited from class org.opensearch.client.json.JsonpMapperBase
addAttribute, attribute, deserialize, findDeserializer, findSerializerMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.opensearch.client.json.JsonpMapper
attribute, ignoreUnknownFields
-
Constructor Details
-
JacksonJsonpMapper
public JacksonJsonpMapper(com.fasterxml.jackson.databind.ObjectMapper objectMapper) -
JacksonJsonpMapper
public JacksonJsonpMapper(com.fasterxml.jackson.databind.ObjectMapper objectMapper, com.fasterxml.jackson.core.JsonFactory jsonFactory) -
JacksonJsonpMapper
public JacksonJsonpMapper()
-
-
Method Details
-
withAttribute
Description copied from interface:JsonpMapperCreate a new mapper with a named attribute that delegates to this one. -
objectMapper
public com.fasterxml.jackson.databind.ObjectMapper 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. -
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.
-