|
||||||||||
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.file.FileWebdavResource
public class FileWebdavResource
A File Representation of a resource in the Webdav FileSystem
Field Summary | |
---|---|
File |
resourceFile
|
static String |
REVISION
|
Fields inherited from class com.jalios.jcms.webdav.WebdavResource |
---|
possibleFile, uri |
Constructor Summary | |
---|---|
FileWebdavResource(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 |
isHidden(WebdavContext ctxt)
This method will return true if the resource isHidden. |
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, isPossibleFile, isReadable, isWritable, putLock, putLocks, setPath, 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 File resourceFile
Constructor Detail |
---|
public FileWebdavResource(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 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 boolean isHidden(WebdavContext ctxt)
WebdavResource
isHidden
in class WebdavResource
ctxt
- the Webdav Context
WebdavResource.isHidden(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)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |