Class ServletResponseDownloadTarget
java.lang.Object
net.sf.basedb.opengrid.filetransfer.AbstractFileTransfer
net.sf.basedb.opengrid.filetransfer.ServletResponseDownloadTarget
- All Implemented Interfaces:
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 Summary
Modifier and TypeFieldDescriptionprivate OutputStream
private final javax.servlet.http.HttpServletResponse
-
Constructor Summary
ConstructorDescriptionServletResponseDownloadTarget
(javax.servlet.http.HttpServletResponse resp, String name) -
Method Summary
Modifier and TypeMethodDescriptionGet an ouput stream for writing the file data to the local resource.Methods inherited from class net.sf.basedb.opengrid.filetransfer.AbstractFileTransfer
getMetadata, getName, initMetadata
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.sf.basedb.opengrid.filetransfer.DownloadTarget
getMetadata, getName
-
Field Details
-
resp
private final javax.servlet.http.HttpServletResponse resp -
out
-
-
Constructor Details
-
ServletResponseDownloadTarget
-
-
Method Details
-
getOutputStream
Description copied from interface:DownloadTarget
Get an ouput stream for writing the file data to the local resource.- Specified by:
getOutputStream
in interfaceDownloadTarget
- Throws:
IOException
-