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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.gcube.com.fasterxml.jackson.databind.ObjectMappergetContext(Class<?> type)
-
Constructor Details
-
CustomObjectMapper
public CustomObjectMapper()
-
-
Method Details
-
getContext
- Specified by:
getContextin interfacejakarta.ws.rs.ext.ContextResolver<org.gcube.com.fasterxml.jackson.databind.ObjectMapper>
-