public class ServletResponseDownloadTarget extends AbstractFileTransfer implements DownloadTarget
Modifier and Type | Field and Description |
---|---|
private java.io.OutputStream |
out |
private javax.servlet.http.HttpServletResponse |
resp |
Constructor and Description |
---|
ServletResponseDownloadTarget(javax.servlet.http.HttpServletResponse resp,
java.lang.String name) |
Modifier and Type | Method and Description |
---|---|
java.io.OutputStream |
getOutputStream()
Get an ouput stream for writing the file data to the
local resource.
|
getMetadata, getName, initMetadata
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getMetadata, getName
private final javax.servlet.http.HttpServletResponse resp
private java.io.OutputStream out
public ServletResponseDownloadTarget(javax.servlet.http.HttpServletResponse resp, java.lang.String name)
public java.io.OutputStream getOutputStream() throws java.io.IOException
DownloadTarget
getOutputStream
in interface DownloadTarget
java.io.IOException