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