public interface DownloadPlugin
| Modifier and Type | Method and Description |
|---|---|
String |
getPluginName()
Get the name of the plugin
|
List<String> |
getRegularExpression()
Gets the regular expression.
|
DownloadItem |
retrieveUrl(DownloadItem item)
This method retrieve the correct Url of the file from the starting URL
|
Iterable<DownloadItem> |
retrieveUrls(Iterable<DownloadItem> items)
This method retrieve the correct Url of the file from a list of starting URL
|
void |
setBasePath(String basePath)
If Sets the base path, the plugin will start to download from the basePath in the file system
|
void |
setRegularExpression(List<String> regularExpression)
Sets the regular expression.
|
void setBasePath(String basePath)
basePath - the base pathDownloadItem retrieveUrl(DownloadItem item) throws DownloadPluginException
item - the starting urlDownloadPluginExceptionIterable<DownloadItem> retrieveUrls(Iterable<DownloadItem> items) throws DownloadPluginException
items - the list of starting urlDownloadPluginExceptionString getPluginName()
List<String> getRegularExpression()
Copyright © 2026. All rights reserved.