Class FormsDownloadFile


  • public final class FormsDownloadFile
    extends java.lang.Object
    Class used to download a File for the plugin Forms
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.lang.String doDownloadFile​(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
      Write in the HttpServletResponse the file to download
      static void doDownloadFileFO​(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
      Write in the HttpServletResponse the file to download.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • doDownloadFile

        public static java.lang.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