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

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.

Since:
8.0
See Also: