Class FormsDownloadFile
java.lang.Object
fr.paris.lutece.plugins.forms.web.file.FormsDownloadFile
Class used to download a File for the plugin Forms
-
Method Summary
Modifier and TypeMethodDescriptionstatic StringdoDownloadFile(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response) Write in the HttpServletResponse the file to downloadstatic voiddoDownloadFileFO(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response) Write in the HttpServletResponse the file to download.
-
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 fromresponse- 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 fromresponse- The HttpServletResponse to set the file to download- Throws:
fr.paris.lutece.portal.service.message.SiteMessageException
-