Class KettleGenericFileSystemConfigBuilder
- java.lang.Object
-
- org.apache.commons.vfs2.FileSystemConfigBuilder
-
- org.pentaho.di.core.vfs.configuration.KettleGenericFileSystemConfigBuilder
-
- All Implemented Interfaces:
IKettleFileSystemConfigBuilder
- Direct Known Subclasses:
KettleSftpFileSystemConfigBuilder
public class KettleGenericFileSystemConfigBuilder extends org.apache.commons.vfs2.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
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
KettleGenericFileSystemConfigBuilder()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static String
extractScheme(String fullParameterName)
Extract the scheme from a Kettle VFS configuration paramter (vfs.scheme.parameter)protected Class<? extends org.apache.commons.vfs2.FileSystem>
getConfigClass()
static KettleGenericFileSystemConfigBuilder
getInstance()
Object
getVariableSpace(org.apache.commons.vfs2.FileSystemOptions fileSystemOptions)
String
parseParameterName(String parameter, String scheme)
Extract the FileSystemOptions parameter name from a Kettle variablevoid
setParameter(org.apache.commons.vfs2.FileSystemOptions opts, String name, String value, String fullParameterName, String vfsUrl)
Publicly expose a generic way to set parametersvoid
setParameter(org.apache.commons.vfs2.FileSystemOptions opts, String name, VariableSpace value, String vfsUrl)
-
Methods inherited from class org.apache.commons.vfs2.FileSystemConfigBuilder
getBoolean, getBoolean, getBoolean, getByte, getByte, getByte, getCharacter, getCharacter, getCharacter, getDouble, getDouble, getDouble, getEnum, getEnum, getFloat, getFloat, getFloat, getInteger, getInteger, getInteger, getLong, getLong, getLong, getParam, getRootURI, getShort, getShort, getShort, getString, getString, hasObject, hasParam, setParam, setParam, setRootURI, toBooleanObject
-
-
-
-
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 interfaceIKettleFileSystemConfigBuilder
- 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
-
getConfigClass
protected Class<? extends org.apache.commons.vfs2.FileSystem> getConfigClass()
- Specified by:
getConfigClass
in classorg.apache.commons.vfs2.FileSystemConfigBuilder
-
setParameter
public void setParameter(org.apache.commons.vfs2.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 interfaceIKettleFileSystemConfigBuilder
- Throws:
IOException
-
setParameter
public void setParameter(org.apache.commons.vfs2.FileSystemOptions opts, String name, VariableSpace value, String vfsUrl)
- Specified by:
setParameter
in interfaceIKettleFileSystemConfigBuilder
-
getVariableSpace
public Object getVariableSpace(org.apache.commons.vfs2.FileSystemOptions fileSystemOptions)
- Specified by:
getVariableSpace
in interfaceIKettleFileSystemConfigBuilder
-
-