Class SolrJacksonMapper

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

    @Provider
    public class SolrJacksonMapper
    extends Object
    implements jakarta.ws.rs.ext.ContextResolver<com.fasterxml.jackson.databind.ObjectMapper>
    Customizes the ObjectMapper settings used for serialization/deserialization in Jersey
    • Constructor Detail

      • SolrJacksonMapper

        public SolrJacksonMapper()
    • Method Detail

      • getContext

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

        public static com.fasterxml.jackson.databind.ObjectMapper getObjectMapper()