public class AsynchronousUploadHandler extends AbstractAsynchronousUploadHandler
| Constructor and Description |
|---|
AsynchronousUploadHandler() |
| Modifier and Type | Method and Description |
|---|---|
void |
addFileItemToUploadedFilesList(org.apache.commons.fileupload.FileItem fileItem,
String strFieldName,
javax.servlet.http.HttpServletRequest request)
Add a file item to the list of uploaded files
|
String |
canUploadFiles(javax.servlet.http.HttpServletRequest request,
String strFieldName,
List<org.apache.commons.fileupload.FileItem> listFileItemsToUpload,
Locale locale)
Check if the file can be uploaded or not.
|
static AsynchronousUploadHandler |
getHandler()
Get the handler
|
String |
getHandlerName()
Get the name of the handler.
|
List<org.apache.commons.fileupload.FileItem> |
getListUploadedFiles(String strFieldName,
javax.servlet.http.HttpSession session)
Gets the list of upload files for a given field and a given session.
|
void |
removeSessionFiles(javax.servlet.http.HttpSession session)
Removes all files associated to the session
|
addFileItemToPartialUploadedFilesList, addFilesUploadedSynchronously, doRemoveFile, doRemoveUploadedFile, doRetrieveUploadedFile, getListPartialUploadedFiles, getUploadAction, getUploadCheckboxPrefix, getUploadDeletePrefix, getUploadSubmitPrefix, hasAddFileFlag, hasRemoveFlag, isInvoked, isManagePartialContent, process, removeAllFileItem, removeFileItempublic static AsynchronousUploadHandler getHandler()
public String canUploadFiles(javax.servlet.http.HttpServletRequest request, String strFieldName, List<org.apache.commons.fileupload.FileItem> listFileItemsToUpload, Locale locale)
IAsyncUploadHandlerrequest - The requeststrFieldName - the field namelistFileItemsToUpload - the list of files to uploadlocale - the localepublic List<org.apache.commons.fileupload.FileItem> getListUploadedFiles(String strFieldName, javax.servlet.http.HttpSession session)
IAsyncUploadHandlerstrFieldName - the field namesession - The session of the current usernull otherwise.public void addFileItemToUploadedFilesList(org.apache.commons.fileupload.FileItem fileItem,
String strFieldName,
javax.servlet.http.HttpServletRequest request)
IAsyncUploadHandlerfileItem - the file itemstrFieldName - the field namerequest - the requestpublic String getHandlerName()
IAsyncUploadHandlerpublic void removeSessionFiles(javax.servlet.http.HttpSession session)
IAsyncUploadHandlerCopyright © 2022 City of Paris. All rights reserved.