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 java.lang.Object
    implements javax.ws.rs.ext.ContextResolver<com.fasterxml.jackson.databind.ObjectMapper>
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      static com.fasterxml.jackson.databind.ObjectMapper configureObjectMapper​(com.fasterxml.jackson.databind.ObjectMapper mapper)  
      com.fasterxml.jackson.databind.ObjectMapper getContext​(java.lang.Class<?> clazz)  
      static void setDateFormatString​(java.lang.String dateFormatString)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • DEFAULT_DATE_FORMAT

        public static final java.lang.String DEFAULT_DATE_FORMAT
        See Also:
        Constant Field Values
      • dateFormatString

        public static java.lang.String dateFormatString
    • 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​(java.lang.Class<?> clazz)
        Specified by:
        getContext in interface javax.ws.rs.ext.ContextResolver<com.fasterxml.jackson.databind.ObjectMapper>
      • setDateFormatString

        public static void setDateFormatString​(java.lang.String dateFormatString)