| java.lang.Object javax.servlet.GenericServlet javax.servlet.http.HttpServlet com.ecyrd.jspwiki.dav.WebdavServlet com.ecyrd.jspwiki.attachment.AttachmentServlet
AttachmentServlet | public class AttachmentServlet extends WebdavServlet (Code) | | This is a simple file upload servlet customized for JSPWiki. It receives
a mime/multipart POST message, as sent by an Attachment page, stores it
temporarily, figures out what WikiName to use to store it, checks for
previously existing versions.
This servlet does not worry about authentication; we leave that to the
container, or a previous servlet that chains to us.
author: Erik Bunn author: Janne Jalkanen since: 1.9.45. |
DEFAULT_EXPIRY | final protected static long DEFAULT_EXPIRY(Code) | | Default expiry period is 1 day
|
doPost | public void doPost(HttpServletRequest req, HttpServletResponse res) throws IOException, ServletException(Code) | | Grabs mime/multipart data and stores it into the temporary area.
Uses other parameters to determine which name to store as.
The input to this servlet is generated by an HTML FORM with
two parts. The first, named 'page', is the WikiName identifier
for the parent file. The second, named 'content', is the binary
content of the file.
|
Methods inherited from com.ecyrd.jspwiki.dav.WebdavServlet | public void doCopy(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException(Code)(Java Doc) public void doLock(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException(Code)(Java Doc) public void doMkCol(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException(Code)(Java Doc) public void doMove(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException(Code)(Java Doc) public void doPropFind(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException(Code)(Java Doc) public void doPropPatch(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException(Code)(Java Doc) public void doUnlock(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException(Code)(Java Doc) protected void service(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException(Code)(Java Doc)
|
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)
|
|
|