Interface BlobDownloadConfigurator

All Known Implementing Classes:
DefaultBlobDownloadConfigurator

public interface BlobDownloadConfigurator
Interface that defines the download method that will do the effective Blob/Clob download.
The DefaultBlobDownloadConfigurator default implementation is fully functional.
Create your own implementation only if you want to implement your own advanced download mechanism with special features: file chunking, recovery mechanisms, etc.
Author:
Nicolas de Pomereu
  • Method Summary

    Modifier and Type Method Description
    void download​(javax.servlet.http.HttpServletRequest request, File file, OutputStream outputStream)
    Method that will do the effective download.
  • Method Details

    • download

      void download​(javax.servlet.http.HttpServletRequest request, File file, OutputStream outputStream) throws IOException
      Method that will do the effective download.
      Parameters:
      request - the http servlet request. May be use to get supplemental parameters passed by client side.
      file - the file to download corresponding to the blob id called by the client side
      outputStream - the servlet output stream on which to download the file. Must *not* be closed at end of download, because it can be reused to send error message to client side after this method execution
      Throws:
      IOException - if any I/O exception occurs during the download