Package com.iizix.jetty
Class UploadServlet
java.lang.Object
jakarta.servlet.GenericServlet
jakarta.servlet.http.HttpServlet
com.iizix.jetty.UploadServlet
- All Implemented Interfaces:
Servlet
,ServletConfig
,Serializable
The uploader servlet.
- Author:
- Christopher Mindus
- See Also:
Method Summary
Modifier and TypeMethodDescriptionvoid
doGet
(HttpServletRequest request, HttpServletResponse response) Get request is not allowed.protected void
doPost
(HttpServletRequest request, HttpServletResponse response) Handles file upload.Methods inherited from class jakarta.servlet.http.HttpServlet
doDelete, doHead, doOptions, doPut, doTrace, getLastModified, service, service
Methods inherited from class jakarta.servlet.GenericServlet
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, init, log, log
Method Details
doGet
Get request is not allowed.- Overrides:
doGet
in classHttpServlet
- Parameters:
request
- The request.response
- The response.- Throws:
ServletException
- For servlet errors.
doPost
protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException Handles file upload.- Overrides:
doPost
in classHttpServlet
- Parameters:
request
- The request.response
- The response.- Throws:
ServletException
- For servlet errors.IOException
- For file I/O errors.