Class FormsDownloadFile


  • public final class FormsDownloadFile
    extends Object
    Class used to download a File for the plugin Forms
    • Method Detail

      • doDownloadFile

        public static String doDownloadFile​(javax.servlet.http.HttpServletRequest request,
                                            javax.servlet.http.HttpServletResponse response)
        Write in the HttpServletResponse the file to download
        Parameters:
        request - The HttpServletRequest to use to retrieve the parameter values from
        response - The HttpServletResponse to set the file to download
        Returns:
        an error message if an error occurred during the download of the File
      • doDownloadFileFO

        public static void doDownloadFileFO​(javax.servlet.http.HttpServletRequest request,
                                            javax.servlet.http.HttpServletResponse response)
                                     throws fr.paris.lutece.portal.service.message.SiteMessageException
        Write in the HttpServletResponse the file to download. This service is only used for FO requests
        Parameters:
        request - The HttpServletRequest to use to retrieve the parameter values from
        response - The HttpServletResponse to set the file to download
        Throws:
        fr.paris.lutece.portal.service.message.SiteMessageException