Revision 47857
Added by Alessia Bardi almost 7 years ago
modules/dnet-download-service-rmi/trunk/src/main/java/eu/dnetlib/data/download/rmi/DownloadPlugin.java | ||
---|---|---|
11 | 11 |
* If Sets the base path, the plugin will start to download from the basePath in the file system |
12 | 12 |
* |
13 | 13 |
* @param basePath the base path |
14 |
* @return the string |
|
15 | 14 |
*/ |
16 | 15 |
void setBasePath(String basePath); |
17 | 16 |
|
18 | 17 |
/** |
19 | 18 |
* This method retrieve the correct Url of the file from the starting URL |
20 | 19 |
* |
21 |
* @param url the starting url
|
|
20 |
* @param item the starting url
|
|
22 | 21 |
* @return the Url of the correct file |
23 | 22 |
*/ |
24 | 23 |
DownloadItem retrieveUrl(DownloadItem item) throws DownloadPluginException; |
... | ... | |
26 | 25 |
/** |
27 | 26 |
* This method retrieve the correct Url of the file from a list of starting URL |
28 | 27 |
* |
29 |
* @param urls the list of starting url
|
|
28 |
* @param items the list of starting url
|
|
30 | 29 |
* @return the list of the file URL |
31 | 30 |
*/ |
32 | 31 |
Iterable<DownloadItem> retrieveUrls(Iterable<DownloadItem> items) throws DownloadPluginException; |
modules/dnet-download-service-rmi/trunk/src/main/java/eu/dnetlib/data/download/rmi/DownloadPluginEnumerator.java | ||
---|---|---|
7 | 7 |
public interface DownloadPluginEnumerator extends BeanFactoryAware { |
8 | 8 |
|
9 | 9 |
/** |
10 |
* Get all beans implementing the DownloadPlugin interface. |
|
10 |
* Get all beans implementing the DownloadPlugin interface, hashed by name.
|
|
11 | 11 |
* |
12 |
* @return |
|
12 |
* @return the map of available download plugins
|
|
13 | 13 |
*/ |
14 | 14 |
Map<String, DownloadPlugin> getAll(); |
15 | 15 |
|
16 | 16 |
/** |
17 |
* Get all beans implementing the DownloadPlugin interface, hashed by name. |
|
17 |
* Get all beans implementing the DownloadPlugin interface, hashed by protocol name.
|
|
18 | 18 |
* |
19 |
* @return |
|
19 |
* @return the map of available download plugins
|
|
20 | 20 |
*/ |
21 | 21 |
Map<String, DownloadPlugin> getByProtocols(); |
22 | 22 |
|
Also available in: Unified diff
fixed javadoc