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.
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 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! 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 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-2018 Jalios SA. All Rights Reserved.