aem-plugin / com.cognifide.gradle.aem.common.file.transfer.http / HttpFileTransfer

HttpFileTransfer

class HttpFileTransfer : ProtocolFileTransfer

Constructors

<init>

HttpFileTransfer(aem: AemExtension, client: HttpClient = client(aem))

Properties

client

var client: HttpClient

name

Unique identifier.

val name: String

protocols

val protocols: List<String>

Functions

client

fun client(configurer: HttpClient.() -> Unit): Unit

downloadFrom

Downloads file with given name from directory available at specified URL.

fun downloadFrom(dirUrl: String, fileName: String, target: File): Unit

Companion Object Properties

NAME

const val NAME: String

Companion Object Functions

client

fun client(aem: AemExtension): HttpClient