Class SolrJacksonMapper

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

    @Provider
    public class SolrJacksonMapper
    extends Object
    implements javax.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 javax.ws.rs.ext.ContextResolver<com.fasterxml.jackson.databind.ObjectMapper>
      • getObjectMapper

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