org.pentaho.di.core.vfs.configuration
Class KettleGenericFileSystemConfigBuilder

java.lang.Object
  extended by org.apache.commons.vfs.FileSystemConfigBuilder
      extended by org.pentaho.di.core.vfs.configuration.KettleGenericFileSystemConfigBuilder
All Implemented Interfaces:
IKettleFileSystemConfigBuilder
Direct Known Subclasses:
KettleSftpFileSystemConfigBuilder

public class KettleGenericFileSystemConfigBuilder
extends org.apache.commons.vfs.FileSystemConfigBuilder
implements IKettleFileSystemConfigBuilder

A generic FileSystemConfigBuilder that inserts parameters and values as literally specified. Note: ALL parameters are case sensitive! Please see individual FileSystemConfigBuilder for list of available parameters. Please also see Kettle FileSystemConfigBuilder overrides for additional parameters.

Author:
cboyden
See Also:
KettleSftpFileSystemConfigBuilder

Method Summary
static String extractScheme(String fullParameterName)
          Extract the scheme from a Kettle VFS configuration paramter (vfs.scheme.parameter)
static KettleGenericFileSystemConfigBuilder getInstance()
           
 String parseParameterName(String parameter, String scheme)
          Extract the FileSystemOptions parameter name from a Kettle variable
 void setParameter(org.apache.commons.vfs.FileSystemOptions opts, String name, String value, String fullParameterName, String vfsUrl)
          Publicly expose a generic way to set parameters
 
Methods inherited from class org.apache.commons.vfs.FileSystemConfigBuilder
getRootURI, setRootURI
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

parseParameterName

public String parseParameterName(String parameter,
                                 String scheme)
Description copied from interface: IKettleFileSystemConfigBuilder
Extract the FileSystemOptions parameter name from a Kettle variable

Specified by:
parseParameterName in interface IKettleFileSystemConfigBuilder
Returns:

getInstance

public static KettleGenericFileSystemConfigBuilder getInstance()

extractScheme

public static String extractScheme(String fullParameterName)
                            throws IllegalArgumentException
Extract the scheme from a Kettle VFS configuration paramter (vfs.scheme.parameter)

Parameters:
fullParameterName - A VFS configuration parameter in the form of 'vfs.scheme.parameter'
Throws:
IllegalArgumentException

setParameter

public void setParameter(org.apache.commons.vfs.FileSystemOptions opts,
                         String name,
                         String value,
                         String fullParameterName,
                         String vfsUrl)
                  throws IOException
Description copied from interface: IKettleFileSystemConfigBuilder
Publicly expose a generic way to set parameters

Specified by:
setParameter in interface IKettleFileSystemConfigBuilder
Throws:
IOException