Package 

Class AbstractFileTransfer

  • All Implemented Interfaces:
    com.cognifide.gradle.common.file.transfer.FileTransfer , com.cognifide.gradle.common.file.transfer.FileTransferHandler , java.io.Serializable

    
    public abstract class AbstractFileTransfer
     implements FileTransferHandler, Serializable
                        
    • Method Summary

      Modifier and Type Method Description
      File download(String fileUrl) Downloads file from specified URL to temporary directory with preserving file name.
      Unit downloadFrom(String dirUrl, String fileName, File target) Downloads file with given name from directory available at specified URL.
      Unit uploadTo(String dirUrl, String fileName, File source) Uploads file to directory available at specified URL and set given name.
      Unit deleteFrom(String dirUrl, String fileName) Deletes file of given name in directory available at specified URL.
      Unit truncate(String dirUrl) Deletes all files in directory available at specified URL.
      List<FileEntry> list(String dirUrl) Lists files in directory available at specified URL.
      FileEntry stat(String dirUrl, String fileName) Gets file status of given name in directory at specified URL.
      final FileDownloader downloader(Function1<FileDownloader, Unit> options)
      final FileUploader uploader(Function1<FileUploader, Unit> options)
      Property<Boolean> getEnabled() When enabled, transfer will be considered when finding transfer handling particular URL.
      Provider<Boolean> getParallelable() Determines if operations using this transfer could be done in parallel.
      abstract String getName() Unique identifier.
      • Methods inherited from class com.cognifide.gradle.common.file.transfer.FileTransferHandler

        delete, download, downloadTo, exists, exists, handles, stat, upload, uploadTo
      • Methods inherited from class com.cognifide.gradle.common.file.transfer.FileTransfer

        equals, hashCode, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait