Package com.logicaldoc.web
Class UploadServlet
java.lang.Object
jakarta.servlet.GenericServlet
jakarta.servlet.http.HttpServlet
com.logicaldoc.web.UploadServlet
- All Implemented Interfaces:
- SessionListener,- jakarta.servlet.Servlet,- jakarta.servlet.ServletConfig,- Serializable
This servlet is responsible for document resource upload. It receives the
 document resource and uploads it in LogicalDOC, inside the document's folder.
- Since:
- 4.5
- Author:
- Matteo Caruso - LogicalDOC
- See Also:
- 
Field SummaryFieldsFields inherited from class jakarta.servlet.http.HttpServletLEGACY_DO_HEAD
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionstatic voidcleanUploads(jakarta.servlet.http.HttpSession httpSession) Removes all the uploaded files from session and file system.static voidcleanUploads(String sid) Removes all the uploaded files from session and file system.getUploads(jakarta.servlet.http.HttpServletRequest request) Retrieves the map containing the files uploaded in the current requestgetUploads(String sid) Retrieves the map containing the files uploaded in the current sessionvoidonSessionClosed(Object sid) voidonSessionCreated(Session session) Methods inherited from class jakarta.servlet.http.HttpServletinit, serviceMethods inherited from class jakarta.servlet.GenericServletdestroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, log
- 
Field Details- 
UPLOADS- See Also:
 
 
- 
- 
Constructor Details- 
UploadServletpublic UploadServlet()Constructor of the object.
 
- 
- 
Method Details- 
getUploadsRetrieves the map containing the files uploaded in the current session- Parameters:
- sid- The current session ID
- Returns:
- the files map where the key is the original file name and the value is the real file
 
- 
getUploadsRetrieves the map containing the files uploaded in the current request- Parameters:
- request- The current request
- Returns:
- the files map where the key is the original file name and the value is the real file
 
- 
cleanUploadsRemoves all the uploaded files from session and file system.- Parameters:
- sid- The current session ID
 
- 
cleanUploadspublic static void cleanUploads(jakarta.servlet.http.HttpSession httpSession) Removes all the uploaded files from session and file system.- Parameters:
- httpSession- The current session
 
- 
onSessionCreated- Specified by:
- onSessionCreatedin interface- SessionListener
 
- 
onSessionClosed- Specified by:
- onSessionClosedin interface- SessionListener
 
 
-