| java.lang.Object com.flexive.war.servlet.DownloadServlet
DownloadServlet | public class DownloadServlet implements Servlet(Code) | | Provides streaming downloads for all binary objects (
com.flexive.shared.value.FxBinary FxBinary ).
The requested value is identified by its XPath.
Link format:
/download/pk{n.m}/xpath/filename.ext
author: Daniel Lichtenberger (daniel.lichtenberger@flexive.com), UCS - unique computing solutions gmbh (http://www.ucs.at) version: $Rev: 1 $ |
destroy | public void destroy()(Code) | | |
getLink | public static String getLink(FxPK pk, String xpath, String fileName)(Code) | | Returns a link (absolute to the server context) to download the binary stored under
the given XPath for the given object. fileName is the filename visible to
the browser, the actual name of the downloaded file is determined by the stored filename.
Parameters: pk - the object pk Parameters: xpath - the XPath of the binary property to be downloaded Parameters: fileName - the filename visible to the browser a link (absolute to the server context) to download the given binary |
|
|