public class FileWebdavFileSystem extends WebdavFileSystem
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
basePath |
static java.lang.String |
REVISION |
resourceLocks
Constructor and Description |
---|
FileWebdavFileSystem(WebdavContext ctxt) |
Modifier and Type | Method and Description |
---|---|
boolean |
doCopy(WebdavResource source,
WebdavResource target,
boolean overwrite,
boolean recursive,
WebdavContext ctxt)
This method perform copy from one Webdav Resource to an Other
|
boolean |
doCreate(WebdavResource resource,
boolean overwrite,
boolean isFolder,
WebdavContext ctxt)
This method perform create from one Webdav Resource
|
boolean |
doDelete(WebdavResource resource,
boolean recursive,
WebdavContext ctxt)
This method perform delete from one Webdav Resource
|
boolean |
doMove(WebdavResource source,
WebdavResource target,
boolean overwrite,
boolean recursive,
WebdavContext ctxt)
This method perform move from one Webdav Resource to an Other
|
java.lang.String |
getAbsolutePath(java.lang.String path,
WebdavContext ctxt)
Work like getAbsoluteUri() but with FileSystem Path
|
java.lang.String |
getRelativePath(java.lang.String path,
WebdavContext ctxt)
Work like getRelativeUri() but with FileSystem Path
|
WebdavResource |
getResource(java.lang.String uri,
WebdavContext ctxt)
Lookup the resource represented by the given URI.
|
WebdavLock |
newLock(WebdavResource resource,
WebdavContext ctxt)
This method will return a new WebdavLock implementation
|
afterDoDelete, afterDoMove, doLock, doPut, doUnlock, getAbsoluteUri, getDescendantLocks, getLocks, getRelativeUri, hasInternalLock, init, isInternallyLocked, isListing, isReadOnly, matchesIfHeaderCondition, normalize, putLock, putLocks, refreshLock, removeLock, removeLocks, silentFilterResource
public static final java.lang.String REVISION
protected java.lang.String basePath
public FileWebdavFileSystem(WebdavContext ctxt)
public java.lang.String getAbsolutePath(java.lang.String path, WebdavContext ctxt)
path
- the file pathctxt
- the Webdav ContextWebdavFileSystem.getAbsoluteUri(String, WebdavContext)
public java.lang.String getRelativePath(java.lang.String path, WebdavContext ctxt)
path
- the absolute pathctxt
- the Webdav ContextWebdavFileSystem.getRelativeUri(String, WebdavContext)
public WebdavResource getResource(java.lang.String uri, WebdavContext ctxt)
WebdavFileSystem
getResource
in class WebdavFileSystem
uri
- the resource URIctxt
- the Webdav ContextWebdavFileSystem.getResource(String, WebdavContext)
public boolean doCopy(WebdavResource source, WebdavResource target, boolean overwrite, boolean recursive, WebdavContext ctxt)
WebdavFileSystem
doCopy
in class WebdavFileSystem
source
- a Webdav Resourcetarget
- a Webdav Resourceoverwrite
- a boolean indicate to overite or not the resourcerecursive
- is it a recursive copyctxt
- the Webdav ContextWebdavFileSystem.doCopy(WebdavResource, WebdavResource, boolean, boolean, WebdavContext)
public boolean doMove(WebdavResource source, WebdavResource target, boolean overwrite, boolean recursive, WebdavContext ctxt)
WebdavFileSystem
doMove
in class WebdavFileSystem
source
- a Webdav Resourcetarget
- a Webdav Resourceoverwrite
- a boolean indicate to overite or not the resourcerecursive
- is it a recursive copyctxt
- the Webdav ContextWebdavFileSystem.doMove(WebdavResource, WebdavResource, boolean, boolean, WebdavContext)
public boolean doCreate(WebdavResource resource, boolean overwrite, boolean isFolder, WebdavContext ctxt)
WebdavFileSystem
doCreate
in class WebdavFileSystem
resource
- the Webdav Resourceoverwrite
- a boolean indicate to ovewrite the resourceisFolder
- create a File or a FolderWebdavFileSystem.doCreate(WebdavResource, boolean, boolean, WebdavContext)
public boolean doDelete(WebdavResource resource, boolean recursive, WebdavContext ctxt)
WebdavFileSystem
doDelete
in class WebdavFileSystem
resource
- the Webdav Resourcerecursive
- is it a recursive deleteWebdavFileSystem.doDelete(WebdavResource, boolean, WebdavContext)
public WebdavLock newLock(WebdavResource resource, WebdavContext ctxt)
WebdavFileSystem
newLock
in class WebdavFileSystem
resource
- the Webdav Resourcectxt
- the Webdav ContextWebdavFileSystem.newLock(WebdavResource, WebdavContext)
Copyright © 2001-2010 Jalios SA. All Rights Reserved.