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:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic String
extractScheme
(String fullParameterName) Extract the scheme from a Kettle VFS configuration paramter (vfs.scheme.parameter)getBowl
(org.apache.commons.vfs2.FileSystemOptions opts) protected Class<? extends org.apache.commons.vfs2.FileSystem>
getVariableSpace
(org.apache.commons.vfs2.FileSystemOptions fileSystemOptions) parseParameterName
(String parameter, String scheme) Extract the FileSystemOptions parameter name from a Kettle variablevoid
void
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, getDuration, getDuration, getDurationInteger, getDurationInteger, getEnum, getEnum, getFloat, getFloat, getFloat, getInteger, getInteger, getInteger, getLong, getLong, getLong, getParam, getRootURI, getShort, getShort, getShort, getString, getString, hasObject, hasParam, setParam, setParam, setRootURI, toBooleanObject
-
Constructor Details
-
KettleGenericFileSystemConfigBuilder
protected KettleGenericFileSystemConfigBuilder()
-
-
Method Details
-
parseParameterName
Description copied from interface:IKettleFileSystemConfigBuilder
Extract the FileSystemOptions parameter name from a Kettle variable- Specified by:
parseParameterName
in interfaceIKettleFileSystemConfigBuilder
- Returns:
-
getInstance
-
extractScheme
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
- 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
- Specified by:
getVariableSpace
in interfaceIKettleFileSystemConfigBuilder
-
setBowl
- Specified by:
setBowl
in interfaceIKettleFileSystemConfigBuilder
-
getBowl
- Specified by:
getBowl
in interfaceIKettleFileSystemConfigBuilder
-