public class HttpFileTransfer
extends ProtocolFileTransfer
| Modifier and Type | Class and Description |
|---|---|
static class |
HttpFileTransfer.Companion |
FileTransfer.DefaultImpls| Modifier and Type | Field and Description |
|---|---|
static HttpFileTransfer.Companion |
Companion |
static java.lang.String |
NAME |
| Constructor and Description |
|---|
HttpFileTransfer(AemExtension aem,
HttpClient client) |
| Modifier and Type | Method and Description |
|---|---|
void |
client(kotlin.jvm.functions.Function1<? super com.cognifide.gradle.aem.common.http.HttpClient,kotlin.Unit> configurer) |
void |
downloadFrom(java.lang.String dirUrl,
java.lang.String fileName,
java.io.File target)
Downloads file with given name from directory available at specified URL.
|
HttpClient |
getClient() |
java.lang.String |
getName()
Unique identifier.
|
java.util.List<java.lang.String> |
getProtocols() |
void |
setClient(HttpClient p) |
getProtocols, handlesdeleteFrom, download, downloadFrom, downloader, getAem, getEnabled, list, setEnabled, stat, truncate, uploadTo, uploaderdelete, deleteFrom, download, download, downloadFrom, downloadTo, exists, exists, getEnabled, getName, handles, list, stat, stat, truncate, upload, uploadTo, uploadTo@NotNull public static java.lang.String NAME
public static HttpFileTransfer.Companion Companion
public HttpFileTransfer(@NotNull
AemExtension aem,
@NotNull
HttpClient client)
public void client(@NotNull
kotlin.jvm.functions.Function1<? super com.cognifide.gradle.aem.common.http.HttpClient,kotlin.Unit> configurer)
@NotNull public java.lang.String getName()
Unique identifier.
@NotNull public java.util.List<java.lang.String> getProtocols()
public void downloadFrom(@NotNull
java.lang.String dirUrl,
@NotNull
java.lang.String fileName,
@NotNull
java.io.File target)
Downloads file with given name from directory available at specified URL.
@NotNull public HttpClient getClient()
public void setClient(@NotNull
HttpClient p)