Class GetJcrFile
java.lang.Object
javax.servlet.GenericServlet
javax.servlet.http.HttpServlet
com.webmethods.caf.jcr.faces.servlet.GetJcrFile
- All Implemented Interfaces:
Serializable
,Servlet
,ServletConfig
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.
- Since:
- 8.0
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void
doGet
(HttpServletRequest req, HttpServletResponse resp) Methods inherited from class javax.servlet.http.HttpServlet
doDelete, doHead, doOptions, doPost, doPut, doTrace, getLastModified, service, service
Methods inherited from class javax.servlet.GenericServlet
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, init, log, log
-
Constructor Details
-
GetJcrFile
public GetJcrFile()
-
-
Method Details
-
doGet
protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException - Overrides:
doGet
in classHttpServlet
- Throws:
ServletException
IOException
-