public class RemoteMavenDownloader extends Object implements Downloader
DEFAULT_NAME| Constructor and Description |
|---|
RemoteMavenDownloader(AuthAwareDownloader downloader,
String mavenRepo,
Optional<PasswordAuthentication> passwordAuthentication) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
fetch(BuckEventBus eventBus,
URI uri,
Path output)
Download the given URL and, upon a successful download, place it in
output. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetNamepublic RemoteMavenDownloader(AuthAwareDownloader downloader, String mavenRepo, Optional<PasswordAuthentication> passwordAuthentication)
public boolean fetch(BuckEventBus eventBus, URI uri, Path output) throws IOException
Downloaderoutput. Note that
if a Downloader can't handle the URI.scheme then false will be
returned.fetch in interface DownloaderIOException - Should an exception be thrown when downloading.