-
- All Implemented Interfaces:
-
com.cognifide.gradle.common.file.transfer.FileTransfer,com.cognifide.gradle.common.file.transfer.FileTransferHandler,java.io.Serializable
public final class HttpFileTransfer extends ProtocolFileTransfer
-
-
Constructor Summary
Constructors Constructor Description HttpFileTransfer(CommonExtension common)
-
Method Summary
Modifier and Type Method Description final Unitclient(Function1<HttpClient, Unit> options)UnitdownloadFrom(String dirUrl, String fileName, File target)Downloads file with given name from directory available at specified URL. StringgetName()List<String>getProtocols()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. -
Methods inherited from class com.cognifide.gradle.common.file.transfer.http.HttpFileTransfer
handles -
Methods inherited from class com.cognifide.gradle.common.file.transfer.ProtocolFileTransfer
deleteFrom, download, downloader, list, stat, truncate, uploadTo, uploader -
Methods inherited from class com.cognifide.gradle.common.file.transfer.FileTransferHandler
delete, download, downloadTo, exists, exists, 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
-
-
Constructor Detail
-
HttpFileTransfer
HttpFileTransfer(CommonExtension common)
-
-
Method Detail
-
client
final Unit client(Function1<HttpClient, Unit> options)
-
downloadFrom
Unit downloadFrom(String dirUrl, String fileName, File target)
Downloads file with given name from directory available at specified URL.
-
getProtocols
List<String> getProtocols()
-
getEnabled
Property<Boolean> getEnabled()
When enabled, transfer will be considered when finding transfer handling particular URL.
-
getParallelable
Provider<Boolean> getParallelable()
Determines if operations using this transfer could be done in parallel.
-
-
-
-