Package com.arangodb.serde.jackson
Interface JacksonSerde
- All Superinterfaces:
ArangoSerde
User data serde based on Jackson Databind. Not shaded in arangodb-java-driver-shaded.
-
Method Summary
Modifier and TypeMethodDescriptionAllows configuring the underlying Jackson ObjectMapperstatic JacksonSerdecreate(com.fasterxml.jackson.databind.ObjectMapper mapper) Creates a new JacksonSerde using the provided ObjectMapper.static RequestContextgetRequestContext(com.fasterxml.jackson.databind.DeserializationContext ctx) Extracts theRequestContextfrom the currentDeserializationContext.static JacksonSerdeof(ContentType contentType) Creates a new JacksonSerde with default settings for the specified data type.Methods inherited from interface com.arangodb.serde.ArangoSerde
deserialize, deserialize, serialize
-
Method Details
-
of
Creates a new JacksonSerde with default settings for the specified data type.- Parameters:
contentType- serialization target data type- Returns:
- the created JacksonSerde
-
create
Creates a new JacksonSerde using the provided ObjectMapper.- Parameters:
mapper- Jackson ObjectMapper to use- Returns:
- the created JacksonSerde
-
getRequestContext
Extracts theRequestContextfrom the currentDeserializationContext.- Parameters:
ctx- current JacksonDeserializationContext- Returns:
- current
RequestContext
-
configure
Allows configuring the underlying Jackson ObjectMapper- Parameters:
configureFunction- function to configure the Jackson ObjectMapper
-