Servlet which adds support for WebDAV level 2. All the basic HTTP requests
are handled by the DefaultServlet.
checkIfHeaders
protected boolean checkIfHeaders(HttpServletRequest request,
HttpServletResponse response,
DefaultServlet.ResourceInfo resourceInfo)
throws IOException Check if the conditions specified in the optional If headers are
satisfied.
- checkIfHeaders in interface DefaultServlet
request - The servlet request we are processingresponse - The servlet response we are creatingresourceInfo - File object
- boolean true if the resource meets all the specified conditions,
and false if any of the conditions is not satisfied, in which case
request processing is stopped
doCopy
protected void doCopy(HttpServletRequest req,
HttpServletResponse resp)
throws ServletException,
IOException COPY Method.
doDelete
protected void doDelete(HttpServletRequest req,
HttpServletResponse resp)
throws ServletException,
IOException DELETE Method.
- doDelete in interface DefaultServlet
doLock
protected void doLock(HttpServletRequest req,
HttpServletResponse resp)
throws ServletException,
IOException LOCK Method.
doMkcol
protected void doMkcol(HttpServletRequest req,
HttpServletResponse resp)
throws ServletException,
IOException MKCOL Method.
doMove
protected void doMove(HttpServletRequest req,
HttpServletResponse resp)
throws ServletException,
IOException MOVE Method.
doOptions
protected void doOptions(HttpServletRequest req,
HttpServletResponse resp)
throws ServletException,
IOException OPTIONS Method.
doPropfind
protected void doPropfind(HttpServletRequest req,
HttpServletResponse resp)
throws ServletException,
IOException PROPFIND Method.
doProppatch
protected void doProppatch(HttpServletRequest req,
HttpServletResponse resp)
throws ServletException,
IOException PROPPATCH Method.
doPut
protected void doPut(HttpServletRequest req,
HttpServletResponse resp)
throws ServletException,
IOException Process a POST request for the specified resource.
- doPut in interface DefaultServlet
req - The servlet request we are processingresp - The servlet response we are creating
doUnlock
protected void doUnlock(HttpServletRequest req,
HttpServletResponse resp)
throws ServletException,
IOException UNLOCK Method.
getDocumentBuilder
protected DocumentBuilder getDocumentBuilder()
throws ServletException Return JAXP document builder instance.
init
public void init()
throws ServletException Initialize this servlet.
- init in interface DefaultServlet
service
protected void service(HttpServletRequest req,
HttpServletResponse resp)
throws ServletException,
IOException Handles the special WebDAV methods.