org.springframework.http.converter.json

Class MappingJacksonInputMessage

  • java.lang.Object
    • org.springframework.http.converter.json.MappingJacksonInputMessage
    • Constructor Detail

      • MappingJacksonInputMessage

        public MappingJacksonInputMessage(java.io.InputStream body,
                                          HttpHeaders headers)
      • MappingJacksonInputMessage

        public MappingJacksonInputMessage(java.io.InputStream body,
                                          HttpHeaders headers,
                                          java.lang.Class<?> deserializationView)
    • Method Detail

      • getBody

        public java.io.InputStream getBody()
                                    throws java.io.IOException
        Description copied from interface: HttpInputMessage
        Return the body of the message as an input stream.
        Specified by:
        getBody in interface HttpInputMessage
        Returns:
        the input stream body (never null)
        Throws:
        java.io.IOException - in case of I/O errors
      • getHeaders

        public HttpHeaders getHeaders()
        Description copied from interface: HttpMessage
        Return the headers of this message.
        Specified by:
        getHeaders in interface HttpMessage
        Returns:
        a corresponding HttpHeaders object (never null)
      • setDeserializationView

        public void setDeserializationView(@Nullable
                                           java.lang.Class<?> deserializationView)
      • getDeserializationView

        @Nullable
        public java.lang.Class<?> getDeserializationView()