Encapsulates the download of a single data product file, and the handling of the server polling and error codes.
Run Id of a data product request that was run
Index of this object's file
From the Onc class
From the Onc class Downloads this data product file
Can poll, wait and retry if the file is not ready to download
When TRUE, existing files will be overwritten, otherwise they are skipped
Same as in the Onc class
The successful (200) httr response obtained from a download request
(integer) the final response's HTTP status code Return the file name from the response
(string) The filename as obtained from the headers Return information on this download's outcome
(list) A named list with information on the download result Sets this object's status to 200 (complete) Used by onc_delivery methods
.filtersThe list of filters to pass to the download API method
.retriesTotal count of HTTP requests made by this object
.statusLast request's HTTP status code
.downloadedTRUE if the file was downloaded from the API
.baseUrlSame as in the Onc class
.downloadUrlURL that downloads this file
.fileNameFilename of the file if downloaded & saved
.fileSizeSize in bytes of the file if downloaded & saved
.runningTimeTotal time spent running (sec)
.downloadingTimeTotal time spend downloading (sec) Class initializer