Package com.logicaldoc.web
Class UploadServlet
java.lang.Object
javax.servlet.GenericServlet
javax.servlet.http.HttpServlet
com.logicaldoc.web.UploadServlet
- All Implemented Interfaces:
SessionListener,Serializable,javax.servlet.Servlet,javax.servlet.ServletConfig
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 Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidcleanReceivedFiles(String sid) Removes all the uploaded files from session and file system.static voidcleanReceivedFiles(javax.servlet.http.HttpSession httpSession) Removes all the uploaded files from session and file system.getReceivedFiles(String sid) Retrieves the map containing the files uploaded in the current sessiongetReceivedFiles(javax.servlet.http.HttpServletRequest request) Retrieves the map containing the files uploaded in the current reqeustvoidonSessionClosed(Object sid) voidonSessionCreated(Session session) Methods inherited from class javax.servlet.http.HttpServlet
serviceMethods inherited from class javax.servlet.GenericServlet
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, init, log, log
-
Field Details
-
RECEIVED_FILES
- See Also:
-
-
Constructor Details
-
UploadServlet
public UploadServlet()Constructor of the object.
-
-
Method Details
-
getReceivedFiles
Retrieves 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
-
getReceivedFiles
Retrieves the map containing the files uploaded in the current reqeust- Parameters:
request- The current request- Returns:
- the files map where the key is the original file name and the value is the real file
-
cleanReceivedFiles
Removes all the uploaded files from session and file system.- Parameters:
sid- The current session ID
-
cleanReceivedFiles
public static void cleanReceivedFiles(javax.servlet.http.HttpSession httpSession) Removes all the uploaded files from session and file system.- Parameters:
httpSession- The current session
-
onSessionCreated
- Specified by:
onSessionCreatedin interfaceSessionListener
-
onSessionClosed
- Specified by:
onSessionClosedin interfaceSessionListener
-