Interface FileTransferClient

  • All Superinterfaces:
    org.ikasan.connector.base.command.TransactionalResource

    public interface FileTransferClient
    extends org.ikasan.connector.base.command.TransactionalResource
    An interface for various File Transfer Clients to implement
    Author:
    Ikasan Development Team
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void cd​(java.lang.String targetPath)
      Method to change directory
      void deleteRemoteDirectory​(java.lang.String directoryPath, boolean recurse)
      Method to delete a remote directory
      void deleteRemoteFile​(java.lang.String filename)
      Method to delete a remote file
      void disconnect()
      TODO add comment
      BaseFileTransferMappedRecord get​(java.lang.String filePath)
      Gets a BaseFileTransferMappedRecord (a 'File') given a filePath
      void get​(java.lang.String filePath, java.io.OutputStream outputStream)
      Get a file as a OutputStream
      void get​(java.lang.String filePath, java.io.OutputStream outputStream, int resume, long offset)
      Get a file as an OutputStream given an offset and a resume flag
      BaseFileTransferMappedRecord get​(ClientListEntry clientListEntry)
      Gets a BaseFileTransferMappedRecord (a 'File') given a ClientListEntry
      java.io.InputStream getAsInputStream​(java.lang.String filePath)
      Utilises the underlying API to return an InputStream as the result of the GET operation
      java.io.InputStream getContentAsStream​(ClientListEntry entry)
      Get the content of a ClientListFileEntry (a 'File') as an InputStream
      java.util.List<ClientListEntry> ls​(java.lang.String path)
      Method to return a list of the contents of a directory
      void mkdir​(java.lang.String directory)
      Allow the creation of directories.
      void put​(java.lang.String name, byte[] content)
      Method to put a content on to a File Tansfer system
      void putWithOutputStream​(java.lang.String fileName, java.io.InputStream inputstream)
      Method to put the file using an OutputStream
      java.lang.String pwd()
      Method to list what directory you are currently in
      void rename​(java.lang.String currentPath, java.lang.String newPath)
      Method to rename a path (a 'File')
      • Methods inherited from interface org.ikasan.connector.base.command.TransactionalResource

        ensureConnection