Package lumis.portal.file
Class FileDownloadControllerHtml
- java.lang.Object
-
- lumis.portal.controller.ControllerHtml
-
- lumis.portal.file.FileDownloadControllerHtml
-
public class FileDownloadControllerHtml extends ControllerHtml
Streams the download of a file stored by theIFileManager
.- Since:
- 4.0.0
- Version:
- $Revision: 23161 $ $Date: 2019-09-17 17:35:15 -0300 (Tue, 17 Sep 2019) $
-
-
Field Summary
Fields Modifier and Type Field Description static String
FILEID_PARAMETER
static String
INLINE_PARAMETER
static String
lastErrorMessage
static Long
lastErrorTimestamp
-
Fields inherited from class lumis.portal.controller.ControllerHtml
out, request, response, sessionConfig, userConfig
-
-
Constructor Summary
Constructors Constructor Description FileDownloadControllerHtml(HttpServletRequest request, HttpServletResponse response)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ServiceContainerUrl
getFileDownloadUrl(String fileId)
Returns the URL for downloading the file with the given id.static ServiceContainerUrl
getFileDownloadUrl(String fileId, boolean inline)
Returns the URL for downloading the file with the given id.static IServiceInterfaceUrl
getFileDownloadUrl(String fileId, String transformationName, boolean inline)
Returns the URL for downloading the file with the given id.void
handleRequest()
-
Methods inherited from class lumis.portal.controller.ControllerHtml
deleteCookie, getCookie, getRequestMode, getSessionConfig, loadUserInfo, setCookie
-
-
-
-
Field Detail
-
FILEID_PARAMETER
public static final String FILEID_PARAMETER
- See Also:
- Constant Field Values
-
INLINE_PARAMETER
public static final String INLINE_PARAMETER
- See Also:
- Constant Field Values
-
lastErrorMessage
public static String lastErrorMessage
-
lastErrorTimestamp
public static Long lastErrorTimestamp
-
-
Constructor Detail
-
FileDownloadControllerHtml
public FileDownloadControllerHtml(HttpServletRequest request, HttpServletResponse response) throws PortalException
- Throws:
PortalException
-
-
Method Detail
-
handleRequest
public void handleRequest() throws PortalException
- Throws:
PortalException
-
getFileDownloadUrl
public static ServiceContainerUrl getFileDownloadUrl(String fileId)
Returns the URL for downloading the file with the given id.- Parameters:
fileId
- the id of the file.- Returns:
- the URL for downloading the file.
-
getFileDownloadUrl
public static ServiceContainerUrl getFileDownloadUrl(String fileId, boolean inline)
Returns the URL for downloading the file with the given id.- Parameters:
fileId
- the id of the file.inline
- indicates whether the download is to return the content-disposition as inline.- Returns:
- the URL for downloading the file.
-
getFileDownloadUrl
public static IServiceInterfaceUrl getFileDownloadUrl(String fileId, String transformationName, boolean inline)
Returns the URL for downloading the file with the given id.- Parameters:
fileId
- the id of the file.transformationName
- the name of the transformation of the file to be used for download.inline
- indicates whether the download is to return the content-disposition as inline.- Returns:
- the URL for downloading the file.
- Since:
- 6.1.0
-
-