Class JacksonConfigurator

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

    @Provider
    @Produces({"application/json","application/hal+json"})
    public class JacksonConfigurator
    extends Object
    implements javax.ws.rs.ext.ContextResolver<com.fasterxml.jackson.databind.ObjectMapper>
    • Constructor Detail

      • JacksonConfigurator

        public JacksonConfigurator()
    • Method Detail

      • configureObjectMapper

        public static com.fasterxml.jackson.databind.ObjectMapper configureObjectMapper​(com.fasterxml.jackson.databind.ObjectMapper mapper)
      • getContext

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

        public static void setDateFormatString​(String dateFormatString)