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
All Methods Static Methods Concrete Methods Modifier and Type Method Description static StringdoDownloadFile(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)Write in the HttpServletResponse the file to downloadstatic voiddoDownloadFileFO(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)Write in the HttpServletResponse the file to download.
-
-
-
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 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(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws fr.paris.lutece.portal.service.message.SiteMessageExceptionWrite 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
-
-