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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringextractScheme(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 variablevoidvoidsetParameter(org.apache.commons.vfs2.FileSystemOptions opts, String name, String value, String fullParameterName, String vfsUrl) Publicly expose a generic way to set parametersvoidsetParameter(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:IKettleFileSystemConfigBuilderExtract the FileSystemOptions parameter name from a Kettle variable- Specified by:
parseParameterNamein 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:
getConfigClassin 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:IKettleFileSystemConfigBuilderPublicly expose a generic way to set parameters- Specified by:
setParameterin interfaceIKettleFileSystemConfigBuilder- Throws:
IOException
-
setParameter
public void setParameter(org.apache.commons.vfs2.FileSystemOptions opts, String name, VariableSpace value, String vfsUrl) - Specified by:
setParameterin interfaceIKettleFileSystemConfigBuilder
-
getVariableSpace
- Specified by:
getVariableSpacein interfaceIKettleFileSystemConfigBuilder
-
setBowl
- Specified by:
setBowlin interfaceIKettleFileSystemConfigBuilder
-
getBowl
- Specified by:
getBowlin interfaceIKettleFileSystemConfigBuilder
-