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, wait
getName
public RemoteMavenDownloader(AuthAwareDownloader downloader, String mavenRepo, Optional<PasswordAuthentication> passwordAuthentication)
public boolean fetch(BuckEventBus eventBus, URI uri, Path output) throws IOException
Downloader
output
. Note that
if a Downloader
can't handle the URI.scheme
then false
will be
returned.fetch
in interface Downloader
IOException
- Should an exception be thrown when downloading.