org.inria.ns.reflex.modules.io.ldap
Class LDAPFileProvider

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.inria.ns.reflex.modules.io.ldap.LDAPFileProvider
All Implemented Interfaces:
FileProvider, VfsComponent

public class LDAPFileProvider
extends AbstractFileProvider

A File Provider for LDAP.

If no driver has been registered for LDAP using the java.protocol.handler.pkgs sytem property, a default DSMLv2 driver is endorsed.

In protected runtime environment such as Servlet container, Jini service or EJB container, the default DSMLv2 driver is also used if no "ldap" protocol has been previously registered.

Author:
Philippe Poulard

Constructor Summary
LDAPFileProvider()
           
 
Method Summary
 FileObject findFile(FileObject baseFile, String uri, FileSystemOptions fileSystemOptions)
          Locates a file object, by absolute URI.
 Collection getCapabilities()
           
 FileSystemConfigBuilder getConfigBuilder()
           
static URL newURL(String uri)
           
static URL newURL(URL base, String uri)
           
 
Methods inherited from class org.apache.commons.vfs.provider.AbstractFileProvider
close, closeFileSystem, createFileSystem, freeUnusedResources, 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

LDAPFileProvider

public LDAPFileProvider()
Method Detail

findFile

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

Throws:
FileSystemException

getConfigBuilder

public FileSystemConfigBuilder getConfigBuilder()
Specified by:
getConfigBuilder in interface FileProvider
Overrides:
getConfigBuilder in class AbstractFileProvider

getCapabilities

public Collection getCapabilities()

newURL

public static URL newURL(String uri)
                  throws MalformedURLException
Throws:
MalformedURLException

newURL

public static URL newURL(URL base,
                         String uri)
                  throws MalformedURLException
Throws:
MalformedURLException