Package org.pentaho.di.connections.vfs
Interface VFSConnectionProvider<T extends VFSConnectionDetails>
- All Superinterfaces:
ConnectionProvider<T>
- All Known Implementing Classes:
BaseVFSConnectionProvider
,OtherConnectionDetailsProvider
public interface VFSConnectionProvider<T extends VFSConnectionDetails>
extends ConnectionProvider<T>
Created by bmorrise on 2/3/19.
-
Method Summary
Modifier and TypeMethodDescriptiondefault org.apache.commons.vfs2.FileObject
getDirectFile
(T connectionDetails, String path) If the provided ConnectionDetails are the correct type, return a FileObject for the provided path.default VFSConnectionFileNameTransformer<T>
getFileNameTransformer
(ConnectionManager connectionManager) Gets a file name transformer for transforming file names in the context of a given connection manager.getLocations
(T vfsConnectionDetails) org.apache.commons.vfs2.FileSystemOptions
getProtocol
(T vfsConnectionDetails) sanitizeName
(String string) Methods inherited from interface org.pentaho.di.connections.ConnectionProvider
getClassType, getConnectionDetails, getConnectionDetails, getKey, getName, getNames, getNames, prepare, test
-
Method Details
-
getOpts
-
getLocations
-
getProtocol
-
sanitizeName
-
getDirectFile
default org.apache.commons.vfs2.FileObject getDirectFile(T connectionDetails, String path) throws KettleFileException If the provided ConnectionDetails are the correct type, return a FileObject for the provided path. This method and the returning FileObject must not depend on a ConnectionManager or MetaStore.- Parameters:
connectionDetails
- for the connectionpath
- path relative to the connection- Returns:
- FileSystem or null if the provided connection details are not the matching type
- Throws:
KettleFileException
-
getFileNameTransformer
@NonNull default VFSConnectionFileNameTransformer<T> getFileNameTransformer(@NonNull ConnectionManager connectionManager) Gets a file name transformer for transforming file names in the context of a given connection manager.- Parameters:
connectionManager
- The connection manager.- Returns:
- The file name transformer.
-