Class DownloadableHttpMessageConverter

java.lang.Object
org.springframework.http.converter.AbstractHttpMessageConverter<com.wavemaker.runtime.commons.file.model.Downloadable>
com.wavemaker.runtime.commons.converters.WMCustomAbstractHttpMessageConverter<com.wavemaker.runtime.commons.file.model.Downloadable>
com.wavemaker.runtime.converters.DownloadableHttpMessageConverter
All Implemented Interfaces:
com.wavemaker.runtime.commons.converters.WMCustomHttpMessageConverter<com.wavemaker.runtime.commons.file.model.Downloadable>, org.springframework.http.converter.HttpMessageConverter<com.wavemaker.runtime.commons.file.model.Downloadable>

public class DownloadableHttpMessageConverter extends com.wavemaker.runtime.commons.converters.WMCustomAbstractHttpMessageConverter<com.wavemaker.runtime.commons.file.model.Downloadable>
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
     

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

    logger
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected com.wavemaker.runtime.commons.file.model.DownloadResponse
    readInternal(Class<? extends com.wavemaker.runtime.commons.file.model.Downloadable> clazz, org.springframework.http.HttpInputMessage inputMessage)
     
    protected boolean
    supports(Class<?> clazz)
     
    protected void
    writeInternal(com.wavemaker.runtime.commons.file.model.Downloadable downloadable, org.springframework.http.HttpOutputMessage outputMessage)
     
    void
    writeMessage(com.wavemaker.runtime.commons.file.model.Downloadable downloadable, jakarta.servlet.http.HttpServletResponse httpServletResponse)
     

    Methods inherited from class com.wavemaker.runtime.commons.converters.WMCustomAbstractHttpMessageConverter

    getDefaultContentType, supportsClazz

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

    addDefaultHeaders, canRead, canRead, canWrite, canWrite, getContentLength, getDefaultCharset, getSupportedMediaTypes, read, setDefaultCharset, setSupportedMediaTypes, supportsRepeatableWrites, write

    Methods inherited from class java.lang.Object

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

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

    canRead, canWrite, getSupportedMediaTypes, getSupportedMediaTypes, read, write
  • Field Details

  • Constructor Details

    • DownloadableHttpMessageConverter

      public DownloadableHttpMessageConverter()
  • Method Details

    • supports

      protected boolean supports(Class<?> clazz)
      Specified by:
      supports in class org.springframework.http.converter.AbstractHttpMessageConverter<com.wavemaker.runtime.commons.file.model.Downloadable>
    • readInternal

      protected com.wavemaker.runtime.commons.file.model.DownloadResponse readInternal(Class<? extends com.wavemaker.runtime.commons.file.model.Downloadable> clazz, org.springframework.http.HttpInputMessage inputMessage) throws IOException
      Specified by:
      readInternal in class org.springframework.http.converter.AbstractHttpMessageConverter<com.wavemaker.runtime.commons.file.model.Downloadable>
      Throws:
      IOException
    • writeInternal

      protected void writeInternal(com.wavemaker.runtime.commons.file.model.Downloadable downloadable, org.springframework.http.HttpOutputMessage outputMessage) throws IOException
      Specified by:
      writeInternal in class org.springframework.http.converter.AbstractHttpMessageConverter<com.wavemaker.runtime.commons.file.model.Downloadable>
      Throws:
      IOException
    • writeMessage

      public void writeMessage(com.wavemaker.runtime.commons.file.model.Downloadable downloadable, jakarta.servlet.http.HttpServletResponse httpServletResponse) throws IOException
      Throws:
      IOException