public class WebdavManager
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
REVISION |
Constructor and Description |
---|
WebdavManager() |
Modifier and Type | Method and Description |
---|---|
protected void |
doCopy(WebdavContext ctxt)
COPY Method
If writing is allowed,
This method decode HTTP Headers: destinationHeader, path, ovewrite
Then call doCopy from WebdavFileSystem
|
protected void |
doDelete(WebdavContext ctxt)
DELETE Method.
|
protected void |
doGet(WebdavContext ctxt,
boolean printContent)
GET Method.
|
protected void |
doHead(WebdavContext ctxt)
HEAD Method.
|
protected void |
doLock(WebdavContext ctxt)
LOCK Method.
|
protected void |
doMkcol(WebdavContext ctxt)
MKCOL Method.
|
protected void |
doMove(WebdavContext ctxt)
MOVE Method.
|
protected void |
doOption(WebdavContext ctxt)
OPTION Method.
|
protected void |
doPropfind(WebdavContext ctxt)
PROPFIND Method.
|
protected java.util.Collection<WebdavProperty> |
doPropfindByProperty(com.jalios.jcms.webdav.WebdavManager.PropFindType type,
org.jdom.Element propNode)
If type is FIND_BY_PROPERTY
This method will return a list of Properties for the given Property Node
|
protected void |
doProppatch(WebdavContext ctxt)
PROPPATCH Method: Not Implemented
Create/Delete a resource property on a non locked resource
WARNING! |
protected void |
doPut(WebdavContext ctxt)
PUT Method.
|
protected void |
doUnlock(WebdavContext ctxt)
UNLOCK Method.
|
protected java.lang.String |
getMethodsAllowed(WebdavResource res,
WebdavContext ctxt) |
protected org.jdom.Element |
getPropNode(WebdavContext ctxt)
Return the PropertyNode from the XML Document
|
protected com.jalios.jcms.webdav.WebdavManager.PropFindType |
getPropNodeType(org.jdom.Element propNode)
This method will parse Property Node
Then decode the type of property to display.
|
boolean |
handleWebdavRequest(WebdavContext ctxt)
This method handle the HTTP Request then redirect to the right method.
|
public static final java.lang.String REVISION
public boolean handleWebdavRequest(WebdavContext ctxt) throws java.io.IOException
ctxt
- The WebdavContextjava.io.IOException
protected org.jdom.Element getPropNode(WebdavContext ctxt)
ctxt
- the WegbdavContextprotected com.jalios.jcms.webdav.WebdavManager.PropFindType getPropNodeType(org.jdom.Element propNode)
propNode
- the XML Document Node to parseprotected java.util.Collection<WebdavProperty> doPropfindByProperty(com.jalios.jcms.webdav.WebdavManager.PropFindType type, org.jdom.Element propNode)
type
- the property typepropNode
- the XML Document Node to parseprotected java.lang.String getMethodsAllowed(WebdavResource res, WebdavContext ctxt)
res
- the WebdavResourcectxt
- the Webdav Contextprotected void doPropfind(WebdavContext ctxt) throws javax.servlet.ServletException, java.io.IOException
ctxt
- the Webdav Contextjavax.servlet.ServletException
java.io.IOException
protected void doProppatch(WebdavContext ctxt) throws javax.servlet.ServletException, java.io.IOException
ctxt
- the Webdav Contextjavax.servlet.ServletException
java.io.IOException
protected void doMkcol(WebdavContext ctxt) throws javax.servlet.ServletException, java.io.IOException
ctxt
- the Webdav Contextjavax.servlet.ServletException
java.io.IOException
protected void doDelete(WebdavContext ctxt) throws javax.servlet.ServletException, java.io.IOException
ctxt
- the Webdav Contextjavax.servlet.ServletException
java.io.IOException
protected void doCopy(WebdavContext ctxt) throws javax.servlet.ServletException, java.io.IOException
ctxt
- the Webdav Contextjavax.servlet.ServletException
java.io.IOException
protected void doMove(WebdavContext ctxt) throws javax.servlet.ServletException, java.io.IOException
ctxt
- the Webdav Contextjavax.servlet.ServletException
java.io.IOException
protected void doGet(WebdavContext ctxt, boolean printContent) throws javax.servlet.ServletException, java.io.IOException
ctxt
- the Webdav ContextprintContent
- GET or HEAD ?javax.servlet.ServletException
java.io.IOException
protected void doHead(WebdavContext ctxt) throws javax.servlet.ServletException, java.io.IOException
ctxt
- the Webdav Contextjavax.servlet.ServletException
java.io.IOException
protected void doPut(WebdavContext ctxt) throws javax.servlet.ServletException, java.io.IOException
ctxt
- the Webdav Contextjavax.servlet.ServletException
java.io.IOException
protected void doLock(WebdavContext ctxt) throws javax.servlet.ServletException, java.io.IOException
ctxt
- the Webdav Contextjavax.servlet.ServletException
java.io.IOException
protected void doUnlock(WebdavContext ctxt) throws javax.servlet.ServletException, java.io.IOException
ctxt
- the Webdav Contextjavax.servlet.ServletException
java.io.IOException
protected void doOption(WebdavContext ctxt) throws javax.servlet.ServletException, java.io.IOException
ctxt
- the Webdav Contextjavax.servlet.ServletException
java.io.IOException
Copyright © 2001-2010 Jalios SA. All Rights Reserved.