Class Jackson2JsonMessageConverter

    • Constructor Detail

      • Jackson2JsonMessageConverter

        public Jackson2JsonMessageConverter()
        Construct with an internal ObjectMapper instance and trusted packed to all (*).
        Since:
        1.6.11
      • Jackson2JsonMessageConverter

        public Jackson2JsonMessageConverter​(String... trustedPackages)
        Construct with an internal ObjectMapper instance. The DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES is set to false on the ObjectMapper.
        Parameters:
        trustedPackages - the trusted Java packages for deserialization
        Since:
        1.6.11
        See Also:
        DefaultJackson2JavaTypeMapper.setTrustedPackages(String...)
      • Jackson2JsonMessageConverter

        public Jackson2JsonMessageConverter​(com.fasterxml.jackson.databind.ObjectMapper jsonObjectMapper)
        Construct with the provided ObjectMapper instance and trusted packed to all (*).
        Parameters:
        jsonObjectMapper - the ObjectMapper to use.
        Since:
        1.6.12
      • Jackson2JsonMessageConverter

        public Jackson2JsonMessageConverter​(com.fasterxml.jackson.databind.ObjectMapper jsonObjectMapper,
                                            String... trustedPackages)
        Construct with the provided ObjectMapper instance.
        Parameters:
        jsonObjectMapper - the ObjectMapper to use.
        trustedPackages - the trusted Java packages for deserialization
        Since:
        1.6.11
        See Also:
        DefaultJackson2JavaTypeMapper.setTrustedPackages(String...)