Class ServletResponseDownloadTarget

java.lang.Object
net.sf.basedb.opengrid.filetransfer.AbstractFileTransfer
net.sf.basedb.opengrid.filetransfer.ServletResponseDownloadTarget
All Implemented Interfaces:
DownloadTarget

public class ServletResponseDownloadTarget extends AbstractFileTransfer implements DownloadTarget
Download target implementation that forwards the downloaded remote file to the servlet response output stream. With this we can 'pipe' the file data directly over the web to the clients computer without storing it locally.
Since:
1.0
Author:
nicklas
  • Field Details

    • resp

      private final javax.servlet.http.HttpServletResponse resp
    • out

      private OutputStream out
  • Constructor Details

    • ServletResponseDownloadTarget

      public ServletResponseDownloadTarget(javax.servlet.http.HttpServletResponse resp, String name)
  • Method Details