|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.jalios.jcms.webdav.WebdavManager
public class WebdavManager
This class is called by WebdavServlet to handle all webdav protocole. It handle all method declaration, delegate to WebdavFileSystem, then send back a response.
Field Summary | |
---|---|
static String |
REVISION
|
Constructor Summary | |
---|---|
WebdavManager()
|
Method Summary | |
---|---|
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. Update headers with really custom argument: "Pragma" -> "no-cache" "Cache-Control" -> "no-store, no-cache, must-revalidate" "Cache-Control" -> "post-check=0, pre-check=0" "MS-Author-Via" -> "DAV, MS-FP/4.0" "MicrosoftOfficeWebServer" -> "5.0_Pub" "DAV" -> "1, 2, DAVJCMS, access-control" |
protected void |
doPropfind(WebdavContext ctxt)
PROPFIND Method. |
protected 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! This methods use in Memory Property management and has no been correctly tested with litmus because JCMS should not use it. |
protected void |
doPut(WebdavContext ctxt)
PUT Method. |
protected void |
doUnlock(WebdavContext ctxt)
UNLOCK Method. |
protected 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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String REVISION
Constructor Detail |
---|
public WebdavManager()
Method Detail |
---|
public boolean handleWebdavRequest(WebdavContext ctxt) throws IOException
ctxt
- The WebdavContext
IOException
protected org.jdom.Element getPropNode(WebdavContext ctxt)
ctxt
- the WegbdavContext
protected com.jalios.jcms.webdav.WebdavManager.PropFindType getPropNodeType(org.jdom.Element propNode)
propNode
- the XML Document Node to parse
protected Collection<WebdavProperty> doPropfindByProperty(com.jalios.jcms.webdav.WebdavManager.PropFindType type, org.jdom.Element propNode)
type
- the property typepropNode
- the XML Document Node to parse
protected String getMethodsAllowed(WebdavResource res, WebdavContext ctxt)
res
- the WebdavResourcectxt
- the Webdav Context
protected void doPropfind(WebdavContext ctxt) throws javax.servlet.ServletException, IOException
ctxt
- the Webdav Context
javax.servlet.ServletException
IOException
protected void doProppatch(WebdavContext ctxt) throws javax.servlet.ServletException, IOException
ctxt
- the Webdav Context
javax.servlet.ServletException
IOException
protected void doMkcol(WebdavContext ctxt) throws javax.servlet.ServletException, IOException
ctxt
- the Webdav Context
javax.servlet.ServletException
IOException
protected void doDelete(WebdavContext ctxt) throws javax.servlet.ServletException, IOException
ctxt
- the Webdav Context
javax.servlet.ServletException
IOException
protected void doCopy(WebdavContext ctxt) throws javax.servlet.ServletException, IOException
ctxt
- the Webdav Context
javax.servlet.ServletException
IOException
protected void doMove(WebdavContext ctxt) throws javax.servlet.ServletException, IOException
ctxt
- the Webdav Context
javax.servlet.ServletException
IOException
protected void doGet(WebdavContext ctxt, boolean printContent) throws javax.servlet.ServletException, IOException
ctxt
- the Webdav ContextprintContent
- GET or HEAD ?
javax.servlet.ServletException
IOException
protected void doHead(WebdavContext ctxt) throws javax.servlet.ServletException, IOException
ctxt
- the Webdav Context
javax.servlet.ServletException
IOException
protected void doPut(WebdavContext ctxt) throws javax.servlet.ServletException, IOException
ctxt
- the Webdav Context
javax.servlet.ServletException
IOException
protected void doLock(WebdavContext ctxt) throws javax.servlet.ServletException, IOException
ctxt
- the Webdav Context
javax.servlet.ServletException
IOException
protected void doUnlock(WebdavContext ctxt) throws javax.servlet.ServletException, IOException
ctxt
- the Webdav Context
javax.servlet.ServletException
IOException
protected void doOption(WebdavContext ctxt) throws javax.servlet.ServletException, IOException
ctxt
- the Webdav Context
javax.servlet.ServletException
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |