public interface DownloadRequestService
Modifier and Type | Method and Description |
---|---|
void |
cancel(@NotNull String downloadKey)
Cancels running download.
|
String |
create(@NotNull DownloadRequest downloadRequest,
String source)
Creates a download request.
|
InputStream |
getResult(String downloadKey) |
File |
getResultFile(Download download) |
File |
getResultFile(String downloadKey) |
void cancel(@NotNull @NotNull String downloadKey)
String create(@NotNull @NotNull DownloadRequest downloadRequest, @Nullable String source)
@Nullable InputStream getResult(String downloadKey)
downloadKey
- of the corresponding download request@Nullable File getResultFile(String downloadKey)
downloadKey
- of the corresponding download request@Nullable File getResultFile(Download download)
download
- of the corresponding download requestCopyright © 2024 Global Biodiversity Information Facility (GBIF). All rights reserved.