public interface Folder extends HierarchyItem
Defines methods that WebDAV server folder items must implement.
In addition to methods provided by HierarchyItem this interface also provides
methods for creating folders and files and enumerating folder children.
| Modifier and Type | Method and Description |
|---|---|
File |
createFile(String name)
Creates new WebDAV file with the specified name in this folder.
|
void |
createFolder(String name)
Creates new WebDAV folder with the specified name in this folder.
|
List<? extends HierarchyItem> |
getChildren(List<Property> propNames)
Gets the array of this folder's children.
|
copyTo, delete, getCreated, getModified, getName, getPath, getProperties, getPropertyNames, moveTo, updatePropertiesList<? extends HierarchyItem> getChildren(List<Property> propNames) throws ServerException
propNames - List of properties to retrieve with the children. They will be queried by the engine later.HierarchyItem objects. Each item is a file or folder item.ServerException - In case of an error.
<<<< getChildren >>>>File createFile(String name) throws LockedException, ServerException
name - Name of the file to create.File.LockedException - This folder was locked. Client did not provide the lock token.ServerException - In case of an error.
<<<< createFileImpl >>>>void createFolder(String name) throws LockedException, ServerException
name - Name of the folder to create.LockedException - This folder was locked. Client did not provide the lock token.ServerException - In case of an error.
<<<< createFolderImpl >>>>Copyright © ITHit. All Rights Reserved.