public class FolderListingFileJspBean extends Object
| Modifier and Type | Field and Description |
|---|---|
static int |
FILE_NOT_ALLOWED |
static int |
FILE_NOT_FOUND |
| Constructor and Description |
|---|
FolderListingFileJspBean()
Public constructor
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
checkRights(javax.servlet.http.HttpServletRequest request)
Check that the user can view the file requested
|
String |
getDirectoryPath(javax.servlet.http.HttpServletRequest request)
Get the directory path of the file to display from the request
|
byte[] |
getFileContent(javax.servlet.http.HttpServletRequest request)
Get the binary content corresponding to the file to display
|
String |
getFileErrorUrl(javax.servlet.http.HttpServletRequest request,
int nErrorType) |
String |
getFilename(javax.servlet.http.HttpServletRequest request)
Get the name of the file to display from the request
|
public static final int FILE_NOT_FOUND
public static final int FILE_NOT_ALLOWED
public String getDirectoryPath(javax.servlet.http.HttpServletRequest request)
request - the http requestpublic byte[] getFileContent(javax.servlet.http.HttpServletRequest request)
request - the http requestpublic String getFileErrorUrl(javax.servlet.http.HttpServletRequest request, int nErrorType)
public String getFilename(javax.servlet.http.HttpServletRequest request)
request - the http requestpublic boolean checkRights(javax.servlet.http.HttpServletRequest request)
request - the http requestCopyright © 2016 City of Paris. All rights reserved.