Interface JacksonSerde

All Superinterfaces:
ArangoSerde
All Known Implementing Classes:
JacksonSerdeImpl

public interface JacksonSerde extends ArangoSerde
User data serde based on Jackson Databind. Not shaded in arangodb-java-driver-shaded.
  • Method Summary

    Modifier and Type
    Method
    Description
    configure(Consumer<com.fasterxml.jackson.databind.ObjectMapper> configureFunction)
    Allows configuring the underlying Jackson ObjectMapper
    create(com.fasterxml.jackson.databind.ObjectMapper mapper)
    Creates a new JacksonSerde using the provided ObjectMapper.
    getRequestContext(com.fasterxml.jackson.databind.DeserializationContext ctx)
    Extracts the RequestContext from the current DeserializationContext.
    of(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

      static JacksonSerde of(ContentType contentType)
      Creates a new JacksonSerde with default settings for the specified data type.
      Parameters:
      contentType - serialization target data type
      Returns:
      the created JacksonSerde
    • create

      static JacksonSerde create(com.fasterxml.jackson.databind.ObjectMapper mapper)
      Creates a new JacksonSerde using the provided ObjectMapper.
      Parameters:
      mapper - Jackson ObjectMapper to use
      Returns:
      the created JacksonSerde
    • getRequestContext

      static RequestContext getRequestContext(com.fasterxml.jackson.databind.DeserializationContext ctx)
      Extracts the RequestContext from the current DeserializationContext.
      Parameters:
      ctx - current Jackson DeserializationContext
      Returns:
      current RequestContext
    • configure

      JacksonSerde configure(Consumer<com.fasterxml.jackson.databind.ObjectMapper> configureFunction)
      Allows configuring the underlying Jackson ObjectMapper
      Parameters:
      configureFunction - function to configure the Jackson ObjectMapper