com.webmethods.caf.jcr.faces.servlet
Class GetJcrFile

java.lang.Object
  extended by HttpServlet
      extended by com.webmethods.caf.jcr.faces.servlet.GetJcrFile

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

Constructor Summary
GetJcrFile()
           
 
Method Summary
protected  void doGet(HttpServletRequest req, HttpServletResponse resp)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GetJcrFile

public GetJcrFile()
Method Detail

doGet

protected void doGet(HttpServletRequest req,
                     HttpServletResponse resp)
              throws ServletException,
                     IOException
Throws:
ServletException
IOException