Class InputStreamHttpMessageConverter

java.lang.Object
org.springframework.http.converter.AbstractHttpMessageConverter<InputStream>
org.frankframework.management.gateway.InputStreamHttpMessageConverter
All Implemented Interfaces:
org.springframework.http.converter.HttpMessageConverter<InputStream>

public class InputStreamHttpMessageConverter extends org.springframework.http.converter.AbstractHttpMessageConverter<InputStream>
  • Field Summary

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

    logger
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected @NonNull InputStream
    readInternal(@NonNull Class<? extends InputStream> clazz, @NonNull org.springframework.http.HttpInputMessage inputMessage)
     
    protected boolean
    supports(@NonNull Class<?> clazz)
     
    protected void
    writeInternal(@NonNull InputStream is, @NonNull 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, supportsRepeatableWrites, write

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.springframework.http.converter.HttpMessageConverter

    getSupportedMediaTypes
  • Constructor Details

    • InputStreamHttpMessageConverter

      public InputStreamHttpMessageConverter()
  • Method Details

    • supports

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

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

      protected void writeInternal(@NonNull InputStream is, @NonNull org.springframework.http.HttpOutputMessage outputMessage) throws IOException, org.springframework.http.converter.HttpMessageNotWritableException
      Specified by:
      writeInternal in class org.springframework.http.converter.AbstractHttpMessageConverter<InputStream>
      Throws:
      IOException
      org.springframework.http.converter.HttpMessageNotWritableException