Class FormsDownloadFile

java.lang.Object
fr.paris.lutece.plugins.forms.web.file.FormsDownloadFile

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

    Modifier and Type
    Method
    Description
    static String
    doDownloadFile(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response)
    Write in the HttpServletResponse the file to download
    static void
    doDownloadFileFO(jakarta.servlet.http.HttpServletRequest request, jakarta.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 Details

    • doDownloadFile

      public static String doDownloadFile(jakarta.servlet.http.HttpServletRequest request, jakarta.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(jakarta.servlet.http.HttpServletRequest request, jakarta.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