|
|
|
|
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.servlet.GenericServlet
javax.servlet.http.HttpServlet
org.torweg.pulse.webdav.AbstractDAVServlet
public abstract class AbstractDAVServlet
A DAV 1 compliant servlet.
| Field Summary | |
|---|---|
static org.jdom.Namespace |
DAV_NAMESPACE
the DAV namespace. |
| Constructor Summary | |
|---|---|
AbstractDAVServlet()
|
|
| Method Summary | |
|---|---|
protected void |
copy(HttpDAVServletRequest req, HttpDAVServletResponse res, User user)
performs a COPY request. |
protected void |
delete(HttpDAVServletRequest req, HttpDAVServletResponse res, User user)
performs a DELETE request. |
protected void |
get(HttpDAVServletRequest req, HttpDAVServletResponse res, User user)
performs a GET request. |
protected abstract DAVConfiguration |
getConfiguration()
returns the DAV configuration. |
protected java.lang.String |
getDAVServletPath(javax.servlet.http.HttpServletRequest req)
returns the path to the DAVServlet. |
protected void |
head(HttpDAVServletRequest req, HttpDAVServletResponse res, User user)
performs a HEAD request. |
protected void |
mkcol(HttpDAVServletRequest req, HttpDAVServletResponse res, User user)
performs an MKCOL request. |
protected void |
move(HttpDAVServletRequest req, HttpDAVServletResponse res, User user)
performs a MOVE request. |
protected void |
options(HttpDAVServletRequest req, HttpDAVServletResponse res, User user)
sets the the current user' allowed options for the requested URI. |
protected void |
post(HttpDAVServletRequest req, HttpDAVServletResponse res, User user)
POST requests are not implemented, since they are not used by WebDAV. |
protected void |
propFind(HttpDAVServletRequest req, HttpDAVServletResponse res, User user)
performs a PROPFIND request. |
protected void |
propPatch(HttpDAVServletRequest req, HttpDAVServletResponse res, User user)
performs a PROPPATCH request. |
protected void |
put(HttpDAVServletRequest req, HttpDAVServletResponse res, User user)
performs a PUT request. |
void |
service(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
takes care of the DAV requests and delegates to the actual worker methods. |
| Methods inherited from class javax.servlet.http.HttpServlet |
|---|
doDelete, doGet, doHead, doOptions, doPost, doPut, doTrace, getLastModified, service |
| Methods inherited from class javax.servlet.GenericServlet |
|---|
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, init, log, log |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final org.jdom.Namespace DAV_NAMESPACE
| Constructor Detail |
|---|
public AbstractDAVServlet()
| Method Detail |
|---|
public final void service(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
throws java.io.IOException
service in class javax.servlet.http.HttpServletreq - the requestres - the response
java.io.IOException - on i/o errorsprotected abstract DAVConfiguration getConfiguration()
protected final void options(HttpDAVServletRequest req, HttpDAVServletResponse res, User user)
req - the current requestres - the responseuser - the user
protected final void propFind(HttpDAVServletRequest req, HttpDAVServletResponse res, User user)
throws java.io.IOException
req - the current requestres - the responseuser - the user
java.io.IOException - on i/o errors
protected final void propPatch(HttpDAVServletRequest req, HttpDAVServletResponse res, User user)
throws java.io.IOException
req - the current requestres - the responseuser - the user
java.io.IOException - on i/o errors
protected final void mkcol(HttpDAVServletRequest req, HttpDAVServletResponse res, User user)
throws java.io.IOException
req - the current requestres - the responseuser - the user
java.io.IOException - on errors
protected final void get(HttpDAVServletRequest req, HttpDAVServletResponse res, User user)
throws java.io.IOException
req - the current requestres - the responseuser - the user
java.io.IOException - on errors accessing the resource
protected final void head(HttpDAVServletRequest req, HttpDAVServletResponse res, User user)
throws java.io.IOException
req - the current requestres - the responseuser - the user
java.io.IOException - on errors accessing the resource
protected final void post(HttpDAVServletRequest req, HttpDAVServletResponse res, User user)
throws java.io.IOException
req - the current requestres - the responseuser - the user
java.io.IOException - on errors sending the error
protected final void put(HttpDAVServletRequest req, HttpDAVServletResponse res, User user)
throws java.io.IOException
req - the current requestres - the responseuser - the user
java.io.IOException - on errors
protected final void delete(HttpDAVServletRequest req, HttpDAVServletResponse res, User user)
throws java.io.IOException
req - the current requestres - the responseuser - the user
java.io.IOException - on errors
protected final void copy(HttpDAVServletRequest req, HttpDAVServletResponse res, User user)
throws java.io.IOException
req - the current requestres - the responseuser - the user
java.io.IOException - on errors
protected final void move(HttpDAVServletRequest req, HttpDAVServletResponse res, User user)
throws java.io.IOException
req - the current requestres - the responseuser - the user
java.io.IOException - on errorsprotected final java.lang.String getDAVServletPath(javax.servlet.http.HttpServletRequest req)
req - the current request
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||