| java.lang.Object javax.servlet.GenericServlet javax.servlet.http.HttpServlet org.zkforge.fckez.uploader.SimpleUploaderServlet
SimpleUploaderServlet | public class SimpleUploaderServlet extends HttpServlet (Code) | | Servlet to upload files.
This servlet accepts just file uploads, eventually with a parameter
specifying file type
author: Simone Chiaretta (simo@users.sourceforge.net) |
Method Summary | |
public void | doPost(HttpServletRequest request, HttpServletResponse response) Manage the Upload requests.
The servlet accepts commands sent in the following format:
simpleUploader?Type=ResourceType
It store the file (renaming it in case a file with the same name exists)
and then return an HTML file with a javascript command in it. | public void | init() Initialize the servlet.
Retrieve from the servlet configuration the "baseDir" which is the root
of the file repository:
If not specified the value of "/UserFiles/" will be used.
Also it retrieve all allowed and denied extensions to be handled. |
doPost | public void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException(Code) | | Manage the Upload requests.
The servlet accepts commands sent in the following format:
simpleUploader?Type=ResourceType
It store the file (renaming it in case a file with the same name exists)
and then return an HTML file with a javascript command in it.
|
init | public void init() throws ServletException(Code) | | Initialize the servlet.
Retrieve from the servlet configuration the "baseDir" which is the root
of the file repository:
If not specified the value of "/UserFiles/" will be used.
Also it retrieve all allowed and denied extensions to be handled.
|
Methods inherited from javax.servlet.http.HttpServlet | protected void doDelete(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException(Code)(Java Doc) protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException(Code)(Java Doc) protected void doHead(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException(Code)(Java Doc) protected void doOptions(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException(Code)(Java Doc) protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException(Code)(Java Doc) protected void doPut(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException(Code)(Java Doc) protected void doTrace(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException(Code)(Java Doc) protected long getLastModified(HttpServletRequest req)(Code)(Java Doc) protected void service(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException(Code)(Java Doc) public void service(ServletRequest req, ServletResponse res) throws ServletException, IOException(Code)(Java Doc)
|
|
|