fileSystem.NamespaceManager implements all WebDAV namespace methods using
the native file system as a repository manager. A resource collection
corresponds to a directory while a resource corresponds to a file in a
directory.
author: Jim Amsden <jamsden@us.ibm.com>
Constructor Summary
public
NamespaceManager() Create a NamespaceManager for creating resources.
Create a NamespaceManager for creating resources. (This is necessary because
createResource can't be static and declared in the NamespaceManager interface.)
Close any opened OutputStream on the contents of the managed resource.
In this case, just close any open file output stream.
exception: com.ibm.webdav.WebDAVException -
Create a collection with the given local name by creating a
directory with the local name.
Parameters: localName - the repository specific local name for the resource exception: com.ibm.webdav.WebDAVException -
Create this resource as a lock-null resource, a resource created by locking one that
did not previously exist. This implementation creates a properties file for the resource,
but no resource file. That is, a lock-null resource is a resource with no contents file,
but having a properties file.
exception: com.ibm.webdav.WebDAVException -
Delete the managed resource from the repository. Just delete
the file or directory after making sure the server has sufficient
permission.
exception: com.ibm.webdav.WebDAVException -
Open an InputStream on the contents of the managed resource. This implementation
opens the resource file, or gets an input stream on the an XML document describing
the contents of a directory.
an InputStream on the contents of the managed resource. exception: com.ibm.webdav.WebDAVException -
Open an OutputStream in order to write the contents of the managed resource.
an OutputStream on the contents of the managed resource. exception: com.ibm.webdav.WebDAVException -
Get the name of the collection (directory) containing this resource (file).
the parent collection name, always ending in a separator exception: com.ibm.webdav.WebDAVException -
Is the managed resource a collection (i.e., is this file a directory)?
true if this resource is a collection, false otherwise exception: com.ibm.webdav.WebDAVException -
Is this resource in the lock-null state? In this implementation, does
this resource have a properties file, but no contents file.
true if this resource is a lock-null resource, false otherwise exception: com.ibm.webdav.WebDAVException -
Treat the managed resource as a method and execute it with the given arguments.
Ths should be done by the host Web server. Executes CGI scripts and Servlets. But
the repository may have some additional capabilities of its own.
Parameters: args - the URL query string (text following the ?) the contents of the result exception: com.ibm.webdav.WebDAVException -