Class AsyncAttachmentDownloader
- java.lang.Object
-
- net.florianschoppmann.issuetracking.asana.AsyncAttachmentDownloader
-
- All Implemented Interfaces:
AttachmentDownloader
public final class AsyncAttachmentDownloader extends Object implements AttachmentDownloader
-
-
Constructor Summary
Constructors Constructor Description AsyncAttachmentDownloader(HttpClient httpClient)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CompletableFuture<Path>
download(Path basePath, String taskId, String attachmentName, URL url)
Path
downloadPath(Path basePath, String taskId, String attachmentName)
-
-
-
Constructor Detail
-
AsyncAttachmentDownloader
public AsyncAttachmentDownloader(HttpClient httpClient)
-
-
Method Detail
-
downloadPath
public Path downloadPath(Path basePath, String taskId, String attachmentName)
- Specified by:
downloadPath
in interfaceAttachmentDownloader
-
download
public CompletableFuture<Path> download(Path basePath, String taskId, String attachmentName, URL url)
- Specified by:
download
in interfaceAttachmentDownloader
-
-