public abstract class Controllers extends Object
| Constructor and Description |
|---|
Controllers() |
| Modifier and Type | Method and Description |
|---|---|
static void |
setOutputContent(javax.servlet.http.HttpServletResponse response,
String outputFileName,
String contentType) |
static void |
setOutputContent(javax.servlet.http.HttpServletResponse response,
String outputFileName,
String contentType,
Long contentLength) |
static void |
writeFileToResponse(javax.servlet.http.HttpServletResponse response,
File file) |
static void |
writeFileToResponse(javax.servlet.http.HttpServletResponse response,
File file,
String outputFileName) |
static void |
writeFileToResponse(javax.servlet.http.HttpServletResponse response,
File file,
String outputFileName,
String contentType) |
static void |
writeFileToResponse(javax.servlet.http.HttpServletResponse response,
InputStream is,
String outputFileName,
String contentType,
long fileSize) |
public static void writeFileToResponse(javax.servlet.http.HttpServletResponse response,
File file)
throws IOException
IOExceptionpublic static void writeFileToResponse(javax.servlet.http.HttpServletResponse response,
File file,
String outputFileName)
throws FileNotFoundException,
IOException
FileNotFoundExceptionIOExceptionpublic static void writeFileToResponse(javax.servlet.http.HttpServletResponse response,
File file,
String outputFileName,
String contentType)
throws FileNotFoundException,
IOException
FileNotFoundExceptionIOExceptionpublic static void writeFileToResponse(javax.servlet.http.HttpServletResponse response,
InputStream is,
String outputFileName,
String contentType,
long fileSize)
throws IOException
IOExceptionpublic static void setOutputContent(javax.servlet.http.HttpServletResponse response,
String outputFileName,
String contentType)
Copyright © 2021 Open Foris. All rights reserved.