org.springframework.boot.autoconfigure.http

Class HttpMessageConverters

  • java.lang.Object
    • org.springframework.boot.autoconfigure.http.HttpMessageConverters
    • Constructor Detail

      • HttpMessageConverters

        public HttpMessageConverters(HttpMessageConverter<?>... additionalConverters)
        Create a new HttpMessageConverters instance with the specified additional converters.
        Parameters:
        additionalConverters - additional converters to be added. New converters will be added to the front of the list, overrides will replace existing items without changing the order. The getConverters() methods can be used for further converter manipulation.
      • HttpMessageConverters

        public HttpMessageConverters(Collection<HttpMessageConverter<?>> additionalConverters)
        Create a new HttpMessageConverters instance with the specified additional converters.
        Parameters:
        additionalConverters - additional converters to be added. Items are added just before any default converter of the same type (or at the front of the list if no default converter is found) The postProcessConverters(List) method can be used for further converter manipulation.
      • HttpMessageConverters

        public HttpMessageConverters(boolean addDefaultConverters,
                                     Collection<HttpMessageConverter<?>> converters)
        Create a new HttpMessageConverters instance with the specified converters.
        Parameters:
        addDefaultConverters - if default converters should be added
        converters - converters to be added. Items are added just before any default converter of the same type (or at the front of the list if no default converter is found) The postProcessConverters(List) method can be used for further converter manipulation.