public class WebDAVStorageWrapper extends Object implements WebDAVStorage
Constructor and Description |
---|
WebDAVStorageWrapper(WebDAVStorage webDAVStorage) |
Modifier and Type | Method and Description |
---|---|
int |
copyCollectionResource(WebDAVRequest webDAVRequest,
Resource resource,
String destination,
boolean overwrite,
long depth) |
int |
copySimpleResource(WebDAVRequest webDAVRequest,
Resource resource,
String destination,
boolean overwrite) |
int |
deleteResource(WebDAVRequest webDAVRequest) |
MethodFactory |
getMethodFactory() |
Resource |
getResource(WebDAVRequest webDAVRequest) |
List<Resource> |
getResources(WebDAVRequest webDAVRequest) |
String |
getRootPath() |
String |
getToken() |
WebDAVStorage |
getWrappedWebDAVStorage() |
boolean |
isAvailable(WebDAVRequest webDAVRequest) |
boolean |
isSupportsClassTwo() |
Status |
lockResource(WebDAVRequest webDAVRequest,
String owner,
long timeout) |
Status |
makeCollection(WebDAVRequest webDAVRequest) |
int |
moveCollectionResource(WebDAVRequest webDAVRequest,
Resource resource,
String destination,
boolean overwrite) |
int |
moveSimpleResource(WebDAVRequest webDAVRequest,
Resource resource,
String destination,
boolean overwrite) |
int |
putResource(WebDAVRequest webDAVRequest) |
Lock |
refreshResourceLock(WebDAVRequest webDAVRequest,
String uuid,
long timeout) |
void |
setRootPath(String rootPath) |
void |
setToken(String token) |
boolean |
unlockResource(WebDAVRequest webDAVRequest,
String token) |
public WebDAVStorageWrapper(WebDAVStorage webDAVStorage)
public int copyCollectionResource(WebDAVRequest webDAVRequest, Resource resource, String destination, boolean overwrite, long depth) throws WebDAVException
copyCollectionResource
in interface WebDAVStorage
WebDAVException
public int copySimpleResource(WebDAVRequest webDAVRequest, Resource resource, String destination, boolean overwrite) throws WebDAVException
copySimpleResource
in interface WebDAVStorage
WebDAVException
public int deleteResource(WebDAVRequest webDAVRequest) throws WebDAVException
deleteResource
in interface WebDAVStorage
WebDAVException
public MethodFactory getMethodFactory()
getMethodFactory
in interface WebDAVStorage
public Resource getResource(WebDAVRequest webDAVRequest) throws WebDAVException
getResource
in interface WebDAVStorage
WebDAVException
public List<Resource> getResources(WebDAVRequest webDAVRequest) throws WebDAVException
getResources
in interface WebDAVStorage
WebDAVException
public String getRootPath()
getRootPath
in interface WebDAVStorage
public String getToken()
getToken
in interface WebDAVStorage
public WebDAVStorage getWrappedWebDAVStorage()
public boolean isAvailable(WebDAVRequest webDAVRequest) throws WebDAVException
isAvailable
in interface WebDAVStorage
WebDAVException
public boolean isSupportsClassTwo()
isSupportsClassTwo
in interface WebDAVStorage
public Status lockResource(WebDAVRequest webDAVRequest, String owner, long timeout) throws WebDAVException
lockResource
in interface WebDAVStorage
WebDAVException
public Status makeCollection(WebDAVRequest webDAVRequest) throws WebDAVException
makeCollection
in interface WebDAVStorage
WebDAVException
public int moveCollectionResource(WebDAVRequest webDAVRequest, Resource resource, String destination, boolean overwrite) throws WebDAVException
moveCollectionResource
in interface WebDAVStorage
WebDAVException
public int moveSimpleResource(WebDAVRequest webDAVRequest, Resource resource, String destination, boolean overwrite) throws WebDAVException
moveSimpleResource
in interface WebDAVStorage
WebDAVException
public int putResource(WebDAVRequest webDAVRequest) throws WebDAVException
putResource
in interface WebDAVStorage
WebDAVException
public Lock refreshResourceLock(WebDAVRequest webDAVRequest, String uuid, long timeout) throws WebDAVException
refreshResourceLock
in interface WebDAVStorage
WebDAVException
public void setRootPath(String rootPath)
setRootPath
in interface WebDAVStorage
public void setToken(String token)
setToken
in interface WebDAVStorage
public boolean unlockResource(WebDAVRequest webDAVRequest, String token) throws WebDAVException
unlockResource
in interface WebDAVStorage
WebDAVException