Class FileDownloadControllerHtml


  • public class FileDownloadControllerHtml
    extends ControllerHtml
    Streams the download of a file stored by the IFileManager.
    Since:
    4.0.0
    Version:
    $Revision: 25462 $ $Date: 2023-02-16 17:22:14 -0300 (Thu, 16 Feb 2023) $
    • Field Detail

      • FILEID_PARAMETER

        public static final java.lang.String FILEID_PARAMETER
        See Also:
        Constant Field Values
      • INLINE_PARAMETER

        public static final java.lang.String INLINE_PARAMETER
        See Also:
        Constant Field Values
      • lastErrorMessage

        public static java.lang.String lastErrorMessage
      • lastErrorTimestamp

        public static java.lang.Long lastErrorTimestamp
    • Method Detail

      • getFileDownloadUrl

        public static ServiceContainerUrl getFileDownloadUrl​(java.lang.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​(java.lang.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​(java.lang.String fileId,
                                                              java.lang.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