|
Openfire 3.9.3 Javadoc | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.servlet.GenericServlet javax.servlet.http.HttpServlet org.jivesoftware.openfire.webdav.WebDAVLiteServlet
public class WebDAVLiteServlet
Implements a very light WebDAV-ish servlet for specific purposes. It does not support WebDAV extensions to the HTTP protocol. Instead, it supports the set of commands: GET, PUT, and DELETE. This serves as a WebDAV like storage interface for MUC shared files. It handles part of XEP-0129: WebDAV File Transfers, but not all of it. We don't handle the PROPPATCH command, for example, as the user has no rights to set the permissions on MUC shared files. TODO: How to handle a remote account? As posed in the WebDAV XEP, we should send a message and wait for response. TODO: How to handle SparkWeb? Reasking for a username and password would suck. Need some form of SSO. Maybe the SSO could be some special token provided during sign-on that the client could store and use for auth.
Constructor Summary | |
---|---|
WebDAVLiteServlet()
|
Method Summary | |
---|---|
protected void |
doDelete(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Handles a DELETE request for deleting files. |
protected void |
doGet(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Handles a GET request for files or for a file listing. |
protected void |
doPut(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Handles a PUT request for uploading files. |
void |
init(javax.servlet.ServletConfig servletConfig)
Initialize the WebDAV servlet, auto-creating it's file root if it doesn't exist. |
Methods inherited from class javax.servlet.http.HttpServlet |
---|
doHead, doOptions, doPost, doTrace, getLastModified, service, service |
Methods inherited from class javax.servlet.GenericServlet |
---|
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, log |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public WebDAVLiteServlet()
Method Detail |
---|
public void init(javax.servlet.ServletConfig servletConfig) throws javax.servlet.ServletException
init
in interface javax.servlet.Servlet
init
in class javax.servlet.GenericServlet
servletConfig
- Configuration settings of the servlet from web.xml.
javax.servlet.ServletException
- If there was an exception setting up the servlet.protected void doGet(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws javax.servlet.ServletException, IOException
doGet
in class javax.servlet.http.HttpServlet
request
- Object representing the HTTP request.response
- Object representing the HTTP response.
javax.servlet.ServletException
- If there was a servlet related exception.
IOException
- If there was an IO error while setting the error.protected void doPut(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws javax.servlet.ServletException, IOException
doPut
in class javax.servlet.http.HttpServlet
request
- Object representing the HTTP request.response
- Object representing the HTTP response.
javax.servlet.ServletException
- If there was a servlet related exception.
IOException
- If there was an IO error while setting the error.protected void doDelete(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws javax.servlet.ServletException, IOException
doDelete
in class javax.servlet.http.HttpServlet
request
- Object representing the HTTP request.response
- Object representing the HTTP response.
javax.servlet.ServletException
- If there was a servlet related exception.
IOException
- If there was an IO error while setting the error.
|
Openfire 3.9.3 Javadoc | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |