|
|
The File Content ProviderPrefaceThe File Content Provider (FCP), a Content Provider for the Universal ContentBroker (UCB), provides access to the local file system. It does this by providing file content objects, which represent either a directory or a file in the local file system. The FCP is able to restrict access to the file system to a number of directories shown to the client under configurable aliases. File ContentsThe FCP provides content representing either a Directory or File in the local file system.
Creation Of New File ContentsA content representing directories implements the interface XContentCreator. A file content object supports the command „insert. To create a new directory/file in a directory:
URL Schemes for File ContentsThe 'file' URL SchemeEach file content has an identifier corresponding to the following scheme: file:///<path> where <path> is a hierarchical path of the form <name1>/<name>/.../<name>. The first part of <path> ( <name1> ) need not denote a physically existing directory, but may be re-mapped to such a directory. If this is done, the FCP refuses file access for any URL whose <name1>-part is not an element of a predefined list of alias names. The 'vnd.sun.star.wfs' URL SchemeIn the Sun ONE Webtop, the server side file system is addressed with vnd.sun.star.wfs URLs (wfs stands for Webtop File System), while the file URL scheme is reserved for a potential client side file system. In that scenario, a trick is used to completely hide the vnd.sun.star.wfs URL scheme from the FCP (i.e., the server side FCP internally works with file URLs, just like any other FCP): There is a special Remote Access Content Provider (RAP) between the UCB and the FCP. That RAP, among other things, can route requests to another UCP and rewrite URLs "on the fly." This feature is used here, so that the client of the UCB works with vnd.sun.star.wfs URLs and the FCP remains unmodified and works with file URLs, with a RAP in between that maps between those two URL schemes:
AppendixThe following table gives an overview of the different properties of file contents and the supported commands and interfaces.
|



