Class AjaxFileUploadServlet
- java.lang.Object
-
- jakarta.servlet.GenericServlet
-
- jakarta.servlet.http.HttpServlet
-
- org.imixs.workflow.faces.fileupload.AjaxFileUploadServlet
-
- All Implemented Interfaces:
jakarta.servlet.Servlet,jakarta.servlet.ServletConfig,Serializable
@WebServlet(urlPatterns="/fileupload/*") public class AjaxFileUploadServlet extends jakarta.servlet.http.HttpServletThe AjaxFileUploadServlet is a Multipart-Servlet 3.0. It is used by the imixsFileUplad widget. The widget is using a jQuery component to handle the upload of multiple files and supports drag & drop functionality. The servlet is configured with a max file size to 10MB, and a max request size of 50MB.- Author:
- rsoika
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static StringIMIXS_FILEDATA_LIST
-
Constructor Summary
Constructors Constructor Description AjaxFileUploadServlet()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voiddoDelete(jakarta.servlet.http.HttpServletRequest httpRequest, jakarta.servlet.http.HttpServletResponse response)Delete a existing file form the fileData list stored in the current user sessionprotected voiddoGet(jakarta.servlet.http.HttpServletRequest httpRequest, jakarta.servlet.http.HttpServletResponse httpResponse)Getter method to return the file content from the fileData list stored in the current userprotected voiddoPost(jakarta.servlet.http.HttpServletRequest httpRequest, jakarta.servlet.http.HttpServletResponse response)Upload files to stored in the current user session-
Methods inherited from class jakarta.servlet.http.HttpServlet
doHead, doOptions, doPut, doTrace, getLastModified, init, service, service
-
-
-
-
Field Detail
-
IMIXS_FILEDATA_LIST
public static final String IMIXS_FILEDATA_LIST
- See Also:
- Constant Field Values
-
-
Method Detail
-
doPost
protected void doPost(jakarta.servlet.http.HttpServletRequest httpRequest, jakarta.servlet.http.HttpServletResponse response) throws jakarta.servlet.ServletException, IOExceptionUpload files to stored in the current user session- Overrides:
doPostin classjakarta.servlet.http.HttpServlet- Throws:
jakarta.servlet.ServletExceptionIOException
-
doDelete
protected void doDelete(jakarta.servlet.http.HttpServletRequest httpRequest, jakarta.servlet.http.HttpServletResponse response) throws jakarta.servlet.ServletException, IOExceptionDelete a existing file form the fileData list stored in the current user session- Overrides:
doDeletein classjakarta.servlet.http.HttpServlet- Throws:
jakarta.servlet.ServletExceptionIOException
-
doGet
protected void doGet(jakarta.servlet.http.HttpServletRequest httpRequest, jakarta.servlet.http.HttpServletResponse httpResponse) throws jakarta.servlet.ServletException, IOExceptionGetter method to return the file content from the fileData list stored in the current user- Overrides:
doGetin classjakarta.servlet.http.HttpServlet- Throws:
jakarta.servlet.ServletExceptionIOException
-
-