Package org.openforis.collect.utils
Class Controllers
java.lang.Object
org.openforis.collect.utils.Controllers
- Author:
- S. Ricci
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidsetOutputContent(javax.servlet.http.HttpServletResponse response, String outputFileName, String contentType) static voidsetOutputContent(javax.servlet.http.HttpServletResponse response, String outputFileName, String contentType, Long contentLength) static voidwriteFileToResponse(javax.servlet.http.HttpServletResponse response, File file) static voidwriteFileToResponse(javax.servlet.http.HttpServletResponse response, File file, String outputFileName) static voidwriteFileToResponse(javax.servlet.http.HttpServletResponse response, File file, String outputFileName, String contentType) static voidwriteFileToResponse(javax.servlet.http.HttpServletResponse response, InputStream is, String outputFileName, String contentType, long fileSize)
-
Constructor Details
-
Controllers
public Controllers()
-
-
Method Details
-
writeFileToResponse
public static void writeFileToResponse(javax.servlet.http.HttpServletResponse response, File file) throws IOException - Throws:
IOException
-
writeFileToResponse
public static void writeFileToResponse(javax.servlet.http.HttpServletResponse response, File file, String outputFileName) throws FileNotFoundException, IOException - Throws:
FileNotFoundExceptionIOException
-
writeFileToResponse
public static void writeFileToResponse(javax.servlet.http.HttpServletResponse response, File file, String outputFileName, String contentType) throws FileNotFoundException, IOException - Throws:
FileNotFoundExceptionIOException
-
writeFileToResponse
public static void writeFileToResponse(javax.servlet.http.HttpServletResponse response, InputStream is, String outputFileName, String contentType, long fileSize) throws IOException - Throws:
IOException
-
setOutputContent
-
setOutputContent
-