org.nuxeo.ecm.platform.ui.web.download
Class DownloadServlet
java.lang.Object
javax.servlet.GenericServlet
javax.servlet.http.HttpServlet
org.nuxeo.ecm.platform.ui.web.download.DownloadServlet
- All Implemented Interfaces:
- Serializable, Servlet, ServletConfig
public class DownloadServlet
- extends HttpServlet
Simple download servlet used for big files that can not be downloaded from
within the JSF context (because of buffered ResponseWrapper).
- Author:
- tiry
- See Also:
- Serialized Form
Methods inherited from class javax.servlet.GenericServlet |
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, init, log, log |
DownloadServlet
public DownloadServlet()
handleClientDisconnect
public void handleClientDisconnect(IOException ioe)
throws IOException
- Throws:
IOException
writeStream
public static void writeStream(InputStream in,
OutputStream out,
DownloadServlet.ByteRange range)
throws IOException
- Throws:
IOException
parseRange
public static DownloadServlet.ByteRange parseRange(String range,
int fileSize)
throws ClientException
- Throws:
ClientException
Copyright © 2011 Nuxeo SAS. All Rights Reserved.