public class CatWebdavResource extends WebdavResource
| Modifier and Type | Field and Description | 
|---|---|
Data | 
resourceData  | 
static java.lang.String | 
REVISION  | 
possibleFile, uri| Constructor and Description | 
|---|
CatWebdavResource(java.lang.String uri,
                 WebdavContext ctxt)  | 
| Modifier and Type | Method and Description | 
|---|---|
java.util.Collection<WebdavResource> | 
getChildren(WebdavContext ctxt)
Return all the Children of the resource. 
 | 
long | 
getContentLength(WebdavContext ctxt)
Return the size of the resource or 0 if there is no content 
 | 
java.lang.String | 
getContentType(WebdavContext ctxt)
This method have to return the Content Type of the resource
 with the Content Encoding ie "text/html; charset=UTF-8"
 It is the media type defined in section 3.7 of [RFC2068]
 If no content type then return "" 
 | 
long | 
getCreationDate(WebdavContext ctxt)
Return long representing the Creation of the resource
 It contains a timestamp of the moment when the resource 
 was created (i.e., the moment it had non-null state). 
 | 
long | 
getLastModified(WebdavContext ctxt)
Return long representing the LastModified of the resource
 Note that the last-modified date on a resource may reflect 
 changes in any part of the state of the resource, not necessarily
 just a change to the response to the GET method. 
 | 
java.io.InputStream | 
getResourceStream(WebdavContext ctxt)
This method have to return an InputStream on the resource. 
 | 
boolean | 
isExisting(WebdavContext ctxt)
Check if the resource exists in the UserFileSystem
 This method is abstract and must be implemented by the UserFileSystem. 
 | 
boolean | 
isFile(WebdavContext ctxt)
This method will check if the resource is a File or a Folder. 
 | 
boolean | 
isFolder(WebdavContext ctxt)
This method will check if the resource is a File or a Folder. 
 | 
boolean | 
isReadable(boolean recursive,
          WebdavContext ctxt)
This method will return true if the resource can be read by the context. 
 | 
boolean | 
isWritable(boolean recursive,
          boolean overwrite,
          WebdavContext ctxt)
This method will return true if the resource can be write by the context. 
 | 
void | 
setPath(java.lang.String uri,
       WebdavContext ctxt)  | 
boolean | 
setResourceStream(java.io.InputStream in,
                 WebdavContext ctxt)
This method have to return an InputStream on the resource. 
 | 
checkUnlockAccess, compareTo, equals, getContentLanguage, getDescendantLocks, getETag, getLastAccessed, getLocks, getName, getParent, getPath, hasExclusiveLockAccess, hasLockAccess, isHidden, isPossibleFile, putLock, putLocks, setPossibleContent, toStringpublic static final java.lang.String REVISION
public Data resourceData
public CatWebdavResource(java.lang.String uri,
                         WebdavContext ctxt)
public java.util.Collection<WebdavResource> getChildren(WebdavContext ctxt)
WebdavResourcegetChildren in class WebdavResourcectxt - the Webdav ContextWebdavResource.getChildren(WebdavContext)public boolean isExisting(WebdavContext ctxt)
WebdavResourceisExisting in class WebdavResourcectxt - the Webdav ContextWebdavResource.isExisting(WebdavContext)public void setPath(java.lang.String uri,
                    WebdavContext ctxt)
setPath in class WebdavResourceWebdavResource.setPath(String, WebdavContext)public boolean isFile(WebdavContext ctxt)
WebdavResourceisFile in class WebdavResourcectxt - the Webdav ContextWebdavResource.isFile(WebdavContext)public boolean isFolder(WebdavContext ctxt)
WebdavResourceisFolder in class WebdavResourcectxt - the Webdav ContextWebdavResource.isFolder(WebdavContext)public long getContentLength(WebdavContext ctxt)
WebdavResourcegetContentLength in class WebdavResourcectxt - the Webdav ContextWebdavResource.getContentLength(WebdavContext)public long getCreationDate(WebdavContext ctxt)
WebdavResourcegetCreationDate in class WebdavResourcectxt - the Webdav ContextWebdavResource.getCreationDate(WebdavContext)public long getLastModified(WebdavContext ctxt)
WebdavResourcegetLastModified in class WebdavResourcectxt - the Webdav ContextWebdavResource.getLastModified(WebdavContext)public java.lang.String getContentType(WebdavContext ctxt)
WebdavResourcegetContentType in class WebdavResourcectxt - the Webdav ContextWebdavResource.getContentType(WebdavContext)public java.io.InputStream getResourceStream(WebdavContext ctxt) throws java.io.IOException
WebdavResourcegetResourceStream in class WebdavResourcectxt - the Webdav Contextjava.io.IOExceptionWebdavResource.getResourceStream(WebdavContext)public boolean setResourceStream(java.io.InputStream in,
                                 WebdavContext ctxt)
                          throws java.io.IOException
WebdavResourcesetResourceStream in class WebdavResourcein - the Request InputStreamctxt - the Webdav Contextjava.io.IOExceptionWebdavResource.setResourceStream(InputStream, WebdavContext)public boolean isReadable(boolean recursive,
                          WebdavContext ctxt)
WebdavResourceisReadable in class WebdavResourcerecursive - Check if children are also readablectxt - the Webdav ContextWebdavResource.isReadable(boolean, WebdavContext)public boolean isWritable(boolean recursive,
                          boolean overwrite,
                          WebdavContext ctxt)
WebdavResourceisWritable in class WebdavResourcerecursive - Check if children are also writableoverwrite - Inform that resources will be overwrited if existsctxt - the Webdav ContextWebdavResource.isWritable(boolean, boolean, WebdavContext)Copyright © 2001-2018 Jalios SA. All Rights Reserved.