Class UploadServlet
java.lang.Object
jakarta.servlet.GenericServlet
jakarta.servlet.http.HttpServlet
org.deltava.servlet.GenericServlet
org.deltava.servlet.BasicAuthServlet
org.deltava.servlet.UploadServlet
- All Implemented Interfaces:
jakarta.servlet.Servlet, jakarta.servlet.ServletConfig, Serializable
A servlet to support file uploads.
- Since:
- 7.5
- Version:
- 12.3
- Author:
- Luke
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescription(package private) static classTemporary file filter.Nested classes/interfaces inherited from class GenericServlet
GenericServlet.ForbiddenException, GenericServlet.NotFoundException, GenericServlet.ServletSecurityContext -
Field Summary
Fields inherited from class jakarta.servlet.http.HttpServlet
LEGACY_DO_HEAD -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddoGet(jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse rsp) Process HTTP GET requests for chunk completion.voiddoPost(jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse rsp) Processes HTTP POST requests for attachments.Returns the servlet description.Methods inherited from class BasicAuthServlet
authenticate, challengeMethods inherited from class GenericServlet
getURLMethods inherited from class jakarta.servlet.http.HttpServlet
doDelete, doHead, doOptions, doPatch, doPut, doTrace, getLastModified, init, isSensitiveHeader, service, serviceMethods inherited from class jakarta.servlet.GenericServlet
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletName, init, log, log
-
Constructor Details
-
UploadServlet
public UploadServlet()
-
-
Method Details
-
getServletInfo
Returns the servlet description.- Specified by:
getServletInfoin interfacejakarta.servlet.Servlet- Overrides:
getServletInfoin classjakarta.servlet.GenericServlet- Returns:
- name, author and copyright info for this servlet
-
doPost
public void doPost(jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse rsp) throws jakarta.servlet.ServletException, IOException Processes HTTP POST requests for attachments.- Overrides:
doPostin classjakarta.servlet.http.HttpServlet- Parameters:
req- the HTTP requestrsp- the HTTP response- Throws:
IOException- if a network I/O error occursjakarta.servlet.ServletException
-
doGet
public void doGet(jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse rsp) throws IOException Process HTTP GET requests for chunk completion. Returns a 200 if the chunk is uploaded, or a 404 if not.- Overrides:
doGetin classjakarta.servlet.http.HttpServlet- Parameters:
req- the HTTP requestrsp- the HTTP response- Throws:
IOException- if something bad happens
-