Class RestJsonProvider

  • All Implemented Interfaces:
    javax.ws.rs.ext.ContextResolver<com.fasterxml.jackson.databind.ObjectMapper>

    @Provider
    public class RestJsonProvider
    extends ObjectMapperProvider
    implements javax.ws.rs.ext.ContextResolver<com.fasterxml.jackson.databind.ObjectMapper>
    A ContextResolver implementation to provide the ObjectMapper from JSONSerialiser. The JSONSerialiser and ObjectMapper can be configured by System Properties, see JSONSerialiser
    • Constructor Detail

      • RestJsonProvider

        public RestJsonProvider()
    • Method Detail

      • getContext

        public com.fasterxml.jackson.databind.ObjectMapper getContext​(Class<?> aClass)
        Specified by:
        getContext in interface javax.ws.rs.ext.ContextResolver<com.fasterxml.jackson.databind.ObjectMapper>