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 Details

    • getOpts

      org.apache.commons.vfs2.FileSystemOptions getOpts(T vfsConnectionDetails)
    • getLocations

      List<VFSRoot> getLocations(T vfsConnectionDetails)
    • getProtocol

      String getProtocol(T vfsConnectionDetails)
    • sanitizeName

      String sanitizeName(String string)
    • 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 connection
      path - 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.