public class GetJcrFile extends HttpServlet
This is a servlet to allow the content of a JCR file node to be streamed back to the end user.
The pathInfo of the request should be the absolute path to the file in the repository.
An optional 'forceDownload' request parameter can be used to force the browser to prompt the user to tell what to do with the downloaded file (save vs. open).
The servlet definition in web.xml should contain an init-param named 'getSessionExpression' that is a expression that resolves to the JCR session that can be used to lookup the requested file node.
Constructor and Description |
---|
GetJcrFile() |
Modifier and Type | Method and Description |
---|---|
protected void |
doGet(HttpServletRequest req,
HttpServletResponse resp) |
doDelete, doHead, doOptions, doPost, doPut, doTrace, getLastModified, service, service
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, init, log, log
protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException
doGet
in class HttpServlet
ServletException
IOException