Class DelegatingHttpEntityMessageConverter

  • All Implemented Interfaces:
    org.springframework.http.converter.HttpMessageConverter<Object>

    public class DelegatingHttpEntityMessageConverter
    extends org.springframework.http.converter.AbstractHttpMessageConverter<Object>
    Since:
    2.7.5
    Author:
    Christoph Deppisch
    • Field Summary

      • Fields inherited from class org.springframework.http.converter.AbstractHttpMessageConverter

        logger
    • Constructor Summary

      Constructors 
      Constructor Description
      DelegatingHttpEntityMessageConverter()
      Default constructor initializing default delegate message converters.
      DelegatingHttpEntityMessageConverter​(List<org.springframework.http.converter.HttpMessageConverter<?>> requestMessageConverters, List<org.springframework.http.converter.HttpMessageConverter<?>> responseMessageConverters)
      Constructor using delegating message converters.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected Object readInternal​(Class<?> clazz, org.springframework.http.HttpInputMessage inputMessage)  
      void setBinaryMediaTypes​(List<org.springframework.http.MediaType> binaryMediaTypes)
      Sets the binaryMediaTypes.
      protected boolean supports​(Class<?> clazz)  
      protected void writeInternal​(Object responseBody, org.springframework.http.HttpOutputMessage outputMessage)  
      • Methods inherited from class org.springframework.http.converter.AbstractHttpMessageConverter

        addDefaultHeaders, canRead, canRead, canWrite, canWrite, getContentLength, getDefaultCharset, getDefaultContentType, getSupportedMediaTypes, read, setDefaultCharset, setSupportedMediaTypes, write
      • Methods inherited from interface org.springframework.http.converter.HttpMessageConverter

        getSupportedMediaTypes
    • Constructor Detail

      • DelegatingHttpEntityMessageConverter

        public DelegatingHttpEntityMessageConverter()
        Default constructor initializing default delegate message converters.
      • DelegatingHttpEntityMessageConverter

        public DelegatingHttpEntityMessageConverter​(List<org.springframework.http.converter.HttpMessageConverter<?>> requestMessageConverters,
                                                    List<org.springframework.http.converter.HttpMessageConverter<?>> responseMessageConverters)
        Constructor using delegating message converters.
        Parameters:
        requestMessageConverters -
        responseMessageConverters -
    • Method Detail

      • supports

        protected boolean supports​(Class<?> clazz)
        Specified by:
        supports in class org.springframework.http.converter.AbstractHttpMessageConverter<Object>
      • readInternal

        protected Object readInternal​(Class<?> clazz,
                                      org.springframework.http.HttpInputMessage inputMessage)
                               throws IOException,
                                      org.springframework.http.converter.HttpMessageNotReadableException
        Specified by:
        readInternal in class org.springframework.http.converter.AbstractHttpMessageConverter<Object>
        Throws:
        IOException
        org.springframework.http.converter.HttpMessageNotReadableException
      • writeInternal

        protected void writeInternal​(Object responseBody,
                                     org.springframework.http.HttpOutputMessage outputMessage)
                              throws IOException,
                                     org.springframework.http.converter.HttpMessageNotWritableException
        Specified by:
        writeInternal in class org.springframework.http.converter.AbstractHttpMessageConverter<Object>
        Throws:
        IOException
        org.springframework.http.converter.HttpMessageNotWritableException
      • setBinaryMediaTypes

        public void setBinaryMediaTypes​(List<org.springframework.http.MediaType> binaryMediaTypes)
        Sets the binaryMediaTypes.
        Parameters:
        binaryMediaTypes -