|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.jalios.jcms.webdav.WebdavResource com.jalios.jcms.webdav.cat.CatWebdavResource
public class CatWebdavResource
A File Representation of a resource in the Webdav FileSystem
Field Summary | |
---|---|
Data |
resourceData
|
static String |
REVISION
|
Fields inherited from class com.jalios.jcms.webdav.WebdavResource |
---|
possibleFile, uri |
Constructor Summary | |
---|---|
CatWebdavResource(String uri,
WebdavContext ctxt)
|
Method Summary | |
---|---|
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 |
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. |
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(String uri,
WebdavContext ctxt)
|
boolean |
setResourceStream(InputStream in,
WebdavContext ctxt)
This method have to return an InputStream on the resource. |
Methods inherited from class com.jalios.jcms.webdav.WebdavResource |
---|
checkUnlockAccess, compareTo, equals, getContentLanguage, getDescendantLocks, getETag, getLastAccessed, getLocks, getName, getParent, getPath, hasExclusiveLockAccess, hasLockAccess, isHidden, isPossibleFile, putLock, putLocks, setPossibleContent, toString |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final String REVISION
public Data resourceData
Constructor Detail |
---|
public CatWebdavResource(String uri, WebdavContext ctxt)
Method Detail |
---|
public Collection<WebdavResource> getChildren(WebdavContext ctxt)
WebdavResource
getChildren
in class WebdavResource
ctxt
- the Webdav Context
WebdavResource.getChildren(WebdavContext)
public boolean isExisting(WebdavContext ctxt)
WebdavResource
isExisting
in class WebdavResource
ctxt
- the Webdav Context
WebdavResource.isExisting(WebdavContext)
public void setPath(String uri, WebdavContext ctxt)
setPath
in class WebdavResource
WebdavResource.setPath(String, WebdavContext)
public boolean isFile(WebdavContext ctxt)
WebdavResource
isFile
in class WebdavResource
ctxt
- the Webdav Context
WebdavResource.isFile(WebdavContext)
public boolean isFolder(WebdavContext ctxt)
WebdavResource
isFolder
in class WebdavResource
ctxt
- the Webdav Context
WebdavResource.isFolder(WebdavContext)
public long getContentLength(WebdavContext ctxt)
WebdavResource
getContentLength
in class WebdavResource
ctxt
- the Webdav Context
WebdavResource.getContentLength(WebdavContext)
public long getCreationDate(WebdavContext ctxt)
WebdavResource
getCreationDate
in class WebdavResource
ctxt
- the Webdav Context
WebdavResource.getCreationDate(WebdavContext)
public long getLastModified(WebdavContext ctxt)
WebdavResource
getLastModified
in class WebdavResource
ctxt
- the Webdav Context
WebdavResource.getLastModified(WebdavContext)
public String getContentType(WebdavContext ctxt)
WebdavResource
getContentType
in class WebdavResource
ctxt
- the Webdav Context
WebdavResource.getContentType(WebdavContext)
public InputStream getResourceStream(WebdavContext ctxt) throws IOException
WebdavResource
getResourceStream
in class WebdavResource
ctxt
- the Webdav Context
IOException
WebdavResource.getResourceStream(WebdavContext)
public boolean setResourceStream(InputStream in, WebdavContext ctxt) throws IOException
WebdavResource
setResourceStream
in class WebdavResource
in
- the Request InputStreamctxt
- the Webdav Context
IOException
WebdavResource.setResourceStream(InputStream, WebdavContext)
public boolean isReadable(boolean recursive, WebdavContext ctxt)
WebdavResource
isReadable
in class WebdavResource
recursive
- Check if children are also readablectxt
- the Webdav Context
WebdavResource.isReadable(boolean, WebdavContext)
public boolean isWritable(boolean recursive, boolean overwrite, WebdavContext ctxt)
WebdavResource
isWritable
in class WebdavResource
recursive
- Check if children are also writableoverwrite
- Inform that resources will be overwrited if existsctxt
- the Webdav Context
WebdavResource.isWritable(boolean, boolean, WebdavContext)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |