public class DefaultDownloadManager extends Object implements DownloadManager
DownloadManager
Modifier and Type | Field and Description |
---|---|
static String |
ROLE_HINT
Role hint.
|
ROLE
Constructor and Description |
---|
DefaultDownloadManager()
Create an instance of the
DefaultDownloadManager . |
DefaultDownloadManager(WagonManager wagonManager) |
Modifier and Type | Method and Description |
---|---|
File |
download(String url,
List<TransferListener> transferListeners,
MessageHolder messageHolder) |
File |
download(String url,
MessageHolder messageHolder) |
public static final String ROLE_HINT
public DefaultDownloadManager()
DefaultDownloadManager
.public DefaultDownloadManager(WagonManager wagonManager)
wagonManager
- WagonManager
public File download(String url, MessageHolder messageHolder) throws DownloadFailedException
download
in interface DownloadManager
url
- The URL.messageHolder
- MessageHolder
File
DownloadFailedException
- in case of exception.public File download(String url, List<TransferListener> transferListeners, MessageHolder messageHolder) throws DownloadFailedException
download
in interface DownloadManager
url
- The URL.transferListeners
- TransferListener
messageHolder
- MessageHolder
File
DownloadFailedException
- in case of exception.Copyright © 2002–2015 The Apache Software Foundation. All rights reserved.