public class DownloadContentServlet
extends javax.servlet.http.HttpServlet
The URL to the servlet should be generated thus:
/alfresco/download/attach/workspace/SpacesStore/0000-0000-0000-0000/myfile.pdfor
/alfresco/download/direct/workspace/SpacesStore/0000-0000-0000-0000/myfile.pdf
The 'attach' or 'direct' element is used to indicate whether to display the stream directly in the browser or download it as a file attachment.
Since ACS 6.X, this Servlet redirects to GET /nodes/{nodeId}/content V1 REST API.
| Constructor and Description |
|---|
DownloadContentServlet() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
doGet(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res) |
doDelete, doHead, doOptions, doPost, doPut, doTrace, getLastModified, service, serviceprotected void doGet(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
throws IOException
doGet in class javax.servlet.http.HttpServletIOExceptionHttpServlet.doGet(HttpServletRequest, HttpServletResponse)Copyright © 2005–2021 Alfresco Software. All rights reserved.