Interface JacksonSerde

  • All Superinterfaces:
    ArangoSerde

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

      • 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