Class CustomObjectMapper

java.lang.Object
org.gcube.social_networking.model.providers.CustomObjectMapper
All Implemented Interfaces:
jakarta.ws.rs.ext.ContextResolver<org.gcube.com.fasterxml.jackson.databind.ObjectMapper>

@Provider public class CustomObjectMapper extends Object implements jakarta.ws.rs.ext.ContextResolver<org.gcube.com.fasterxml.jackson.databind.ObjectMapper>
Custom mapper with property CAMEL_CASE_TO_LOWER_CASE_WITH_UNDERSCORES to perform serialization/deserialization with snake case over camel case for json beans.
Author:
Costantino Perciante at ISTI-CNR (costantino.perciante@isti.cnr.it)
  • Constructor Details

    • CustomObjectMapper

      public CustomObjectMapper()
  • Method Details

    • getContext

      public org.gcube.com.fasterxml.jackson.databind.ObjectMapper getContext(Class<?> type)
      Specified by:
      getContext in interface jakarta.ws.rs.ext.ContextResolver<org.gcube.com.fasterxml.jackson.databind.ObjectMapper>