org.inria.ns.reflex.modules.io.xmldb
Class XMLDBFileProvider

java.lang.Object
  extended by org.apache.commons.vfs.provider.AbstractVfsComponent
      extended by org.apache.commons.vfs.provider.AbstractVfsContainer
          extended by org.apache.commons.vfs.provider.AbstractFileProvider
              extended by org.apache.commons.vfs.provider.AbstractOriginatingFileProvider
                  extended by org.inria.ns.reflex.modules.io.xmldb.XMLDBFileProvider
All Implemented Interfaces:
FileProvider, VfsComponent

public class XMLDBFileProvider
extends AbstractOriginatingFileProvider

A file provider for XML:DB. Usage : xmldb:provider://host:port/path/to/resource

Author:
Philippe Poulard

Constructor Summary
XMLDBFileProvider()
          The XML:DB provider for VFS.
 
Method Summary
 FileObject findFile(FileObject baseFile, String uri, FileSystemOptions fileSystemOptions)
          Locates a file object, by absolute URI.
 Collection getCapabilities()
          Return the XML:DB capabilities.
 
Methods inherited from class org.apache.commons.vfs.provider.AbstractFileProvider
close, closeFileSystem, createFileSystem, freeUnusedResources, getConfigBuilder, parseUri
 
Methods inherited from class org.apache.commons.vfs.provider.AbstractVfsComponent
init, setContext, setLogger
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XMLDBFileProvider

public XMLDBFileProvider()
The XML:DB provider for VFS.

Method Detail

getCapabilities

public Collection getCapabilities()
Return the XML:DB capabilities.

Returns:
The XML:DB capabilities.
See Also:
FileProvider.getCapabilities()

findFile

public FileObject findFile(FileObject baseFile,
                           String uri,
                           FileSystemOptions fileSystemOptions)
                    throws FileSystemException
Locates a file object, by absolute URI.

Specified by:
findFile in interface FileProvider
Overrides:
findFile in class AbstractOriginatingFileProvider
Parameters:
baseFile - Usually, a default local file such as the current dir or the user home dir ; not used.
uri - The full URI "xmldb:provider://user:pwd@host:port/path/to/resource"
Returns:
An XMLDBFileObject.
Throws:
FileSystemException