public class FileDownloadControllerHtml extends ControllerHtml
IFileManager
.Modifier and Type | Field and Description |
---|---|
static String |
FILEID_PARAMETER |
static String |
INLINE_PARAMETER |
static String |
lastErrorMessage |
static Long |
lastErrorTimestamp |
out, request, response, sessionConfig, userConfig
Constructor and Description |
---|
FileDownloadControllerHtml(HttpServletRequest request,
HttpServletResponse response) |
Modifier and Type | Method and 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() |
deleteCookie, getCookie, getRequestMode, getSessionConfig, loadUserInfo, setCookie
public static final String FILEID_PARAMETER
public static final String INLINE_PARAMETER
public static String lastErrorMessage
public static Long lastErrorTimestamp
public FileDownloadControllerHtml(HttpServletRequest request, HttpServletResponse response) throws PortalException
PortalException
public void handleRequest() throws PortalException
PortalException
public static ServiceContainerUrl getFileDownloadUrl(String fileId)
fileId
- the id of the file.public static ServiceContainerUrl getFileDownloadUrl(String fileId, boolean inline)
fileId
- the id of the file.inline
- indicates whether the download is to return the
content-disposition as inline.public static IServiceInterfaceUrl getFileDownloadUrl(String fileId, String transformationName, boolean inline)
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.LumisXP 12.4.0.200625 - Copyright © 2006–2020 Lumis EIP Tecnologia da Informação LTDA. All Rights Reserved.