| java.lang.Object org.apache.commons.vfs.util.DelegatingFileSystemOptionsBuilder
DelegatingFileSystemOptionsBuilder | public class DelegatingFileSystemOptionsBuilder (Code) | | This class use reflection to set a configuration value using the fileSystemConfigBuilder
associated the a scheme.
Example:
FileSystemOptions fso = new FileSystemOptions();
DelegatingFileSystemOptionsBuilder delegate = new DelegatingFileSystemOptionsBuilder(VFS.getManager());
delegate.setConfigString(fso, "sftp", "identities", "c:/tmp/test.ident");
delegate.setConfigString(fso, "http", "proxyPort", "8080");
delegate.setConfigClass(fso, "sftp", "userinfo", TrustEveryoneUserInfo.class);
author: Mario Ivankovits version: $Revision: 480428 $ $Date: 2006-11-28 22:15:24 -0800 (Tue, 28 Nov 2006) $ |
Method Summary | |
protected FileSystemManager | getManager() | public void | setConfigClass(FileSystemOptions fso, String scheme, String name, Class className) Set a single class value.
The class has to implement a no-args constructor, else the instantiation might fail. | public void | setConfigClasses(FileSystemOptions fso, String scheme, String name, Class[] classNames) Set an array of class values.
The class has to implement a no-args constructor, else the instantiation might fail. | public void | setConfigString(FileSystemOptions fso, String scheme, String name, String value) Set a single string value. | public void | setConfigStrings(FileSystemOptions fso, String scheme, String name, String[] values) Set an array of string value. |
DelegatingFileSystemOptionsBuilder | public DelegatingFileSystemOptionsBuilder(FileSystemManager manager)(Code) | | Constructor.
Pass in your fileSystemManager instance.
Parameters: manager - the manager to use to get the fileSystemConfigBuilder assocated to a scheme |
|
|