Package nl.info.webdav
Class StoredObject
java.lang.Object
nl.info.webdav.StoredObject
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the date of the creationGets the date of the last modificationRetrieve the myme type from the store object.longGets the length of the resource contentbooleanisFolder()Determines whether the StoredObject is a folder or a resourcebooleanGets the state of the resourcebooleanDetermines whether the StoredObject is a folder or a resourcevoidSets the date of the creationvoidsetFolder(boolean f) Sets a new StoredObject as a collection or resourcevoidSets the date of the last modificationvoidsetMimeType(String mimeType) Set the mime type of this objectvoidsetNullResource(boolean f) Sets a StoredObject as a lock-null resourcevoidsetResourceLength(long l) Sets the length of the resource content
-
Constructor Details
-
StoredObject
public StoredObject()
-
-
Method Details
-
isFolder
public boolean isFolder()Determines whether the StoredObject is a folder or a resource- Returns:
- true if the StoredObject is a collection
-
isResource
public boolean isResource()Determines whether the StoredObject is a folder or a resource- Returns:
- true if the StoredObject is a resource
-
setFolder
public void setFolder(boolean f) Sets a new StoredObject as a collection or resource- Parameters:
f- true - collection ; false - resource
-
getLastModified
Gets the date of the last modification- Returns:
- last modification Date
-
setLastModified
Sets the date of the last modification- Parameters:
d- date of the last modification
-
getCreationDate
Gets the date of the creation- Returns:
- creation Date
-
setCreationDate
Sets the date of the creation- Parameters:
c- date of the creation
-
getResourceLength
public long getResourceLength()Gets the length of the resource content- Returns:
- length of the resource content
-
setResourceLength
public void setResourceLength(long l) Sets the length of the resource content- Parameters:
l- the length of the resource content
-
isNullResource
public boolean isNullResource()Gets the state of the resource- Returns:
- true if the resource is in lock-null state
-
setNullResource
public void setNullResource(boolean f) Sets a StoredObject as a lock-null resource- Parameters:
f- true to set the resource as lock-null resource
-
getMimeType
Retrieve the myme type from the store object. Can also return NULL if the store does not handle mime type stuff. In that case the mime type is determined by the servletcontext- Returns:
- the mimeType
-
setMimeType
Set the mime type of this object- Parameters:
mimeType- the mimeType to set
-