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
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default org.apache.commons.vfs2.FileObjectgetDirectFile(T connectionDetails, String path)If the provided ConnectionDetails are the correct type, return a FileObject for the provided path.List<VFSRoot>getLocations(T vfsConnectionDetails)org.apache.commons.vfs2.FileSystemOptionsgetOpts(T vfsConnectionDetails)StringgetProtocol(T vfsConnectionDetails)StringsanitizeName(String string)-
Methods inherited from interface org.pentaho.di.connections.ConnectionProvider
getClassType, getConnectionDetails, getKey, getName, getNames, prepare, test
-
-
-
-
Method Detail
-
getOpts
org.apache.commons.vfs2.FileSystemOptions getOpts(T vfsConnectionDetails)
-
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
-
-