|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ResourceDownloaderFactory
Method Summary | |
---|---|
ResourceDownloader |
create(File file)
Creates a downloader for a local file - in particular this is useful for installing a plugin from a local file as the installer required ResourceDownloader instances to operate |
ResourceDownloader |
create(ResourceDownloaderDelayedFactory factory)
creates a downloader that will be asked to create a ResourceDownloader when required. |
ResourceDownloader |
create(URL url)
creates a basic downloader. |
ResourceDownloader |
create(URL url,
boolean force_no_proxy)
Creates a basic downloader, where you can force any configured proxy to be avoided. |
ResourceDownloader |
create(URL url,
byte[] post_data)
|
ResourceDownloader |
create(URL url,
Proxy force_proxy)
|
ResourceDownloader |
create(URL url,
String post_data)
|
ResourceDownloader |
create(URL url,
String post_data,
Proxy proxy)
|
ResourceDownloader |
create(URL url,
String user_name,
String password)
|
ResourceDownloader |
createWithAutoPluginProxy(URL url)
|
ResourceDownloader |
getAlternateDownloader(ResourceDownloader[] downloaders)
Gets a downloader that will cycle through a list of downloaders until a download succeeds. |
ResourceDownloader |
getAlternateDownloader(ResourceDownloader[] downloaders,
int max_to_try)
Gets a downloader that will cycle through a list of downloaders until a download succeeds. |
ResourceDownloader |
getMetaRefreshDownloader(ResourceDownloader downloader)
gets a downloader that will automatically follow META refresh tags Will only do a single level of indirection |
ResourceDownloader |
getRandomDownloader(ResourceDownloader[] downloaders)
Gets a downloader that will cycle through a list of downloaders until a download succeeds. |
ResourceDownloader |
getRandomDownloader(ResourceDownloader[] downloaders,
int max_to_try)
Gets a downloader that will cycle through a list of downloaders until a download succeeds. |
ResourceDownloader |
getRetryDownloader(ResourceDownloader downloader,
int retry_count)
gets a downloader that will retry a number of times before failing |
ResourceDownloader |
getSourceforgeDownloader(String project_name,
String file_name)
Creates a resource downloader which can be used to download a file from a Sourceforge project (from different mirrors). |
ResourceDownloader[] |
getSourceforgeDownloaders(String project_name,
String file_name)
Creates multiple resource downloaders which can be used to download a file from a Sourceforge project (from different mirrors). |
ResourceDownloader |
getSuffixBasedDownloader(ResourceDownloader downloader)
Returns a downloader that does something sensible based on the url suffix. |
ResourceDownloader |
getTimeoutDownloader(ResourceDownloader downloader,
int timeout_millis)
gets a downloader that will timeout after a given period |
ResourceDownloader |
getTorrentDownloader(ResourceDownloader downloader,
boolean persistent)
Given a downloader that will download a torrent, this will download the torrent data itself. |
ResourceDownloader |
getTorrentDownloader(ResourceDownloader downloader,
boolean persistent,
File download_directory)
Download a torrent's data to the given download location |
Method Detail |
---|
ResourceDownloader create(File file)
file
-
ResourceDownloader create(URL url)
url
-
ResourceDownloader createWithAutoPluginProxy(URL url)
ResourceDownloader create(URL url, boolean force_no_proxy)
ResourceDownloader create(URL url, Proxy force_proxy)
ResourceDownloader create(URL url, String user_name, String password)
ResourceDownloader create(ResourceDownloaderDelayedFactory factory)
factory
-
ResourceDownloader getRetryDownloader(ResourceDownloader downloader, int retry_count)
downloader
- retry_count
-
ResourceDownloader getTimeoutDownloader(ResourceDownloader downloader, int timeout_millis)
downloader
- timeout_millis
-
ResourceDownloader getAlternateDownloader(ResourceDownloader[] downloaders)
ResourceDownloader getAlternateDownloader(ResourceDownloader[] downloaders, int max_to_try)
ResourceDownloader getRandomDownloader(ResourceDownloader[] downloaders)
ResourceDownloader getRandomDownloader(ResourceDownloader[] downloaders, int max_to_try)
ResourceDownloader getMetaRefreshDownloader(ResourceDownloader downloader)
downloader
-
ResourceDownloader getTorrentDownloader(ResourceDownloader downloader, boolean persistent)
downloader
- persistent
- whether or not the d/l will be retained over az stop/start
ResourceDownloader getTorrentDownloader(ResourceDownloader downloader, boolean persistent, File download_directory)
downloader
- persistent
- download_directory
-
ResourceDownloader getSuffixBasedDownloader(ResourceDownloader downloader)
url
-
ResourceDownloader create(URL url, String post_data)
url
- postData
-
ResourceDownloader create(URL url, String post_data, Proxy proxy)
ResourceDownloader create(URL url, byte[] post_data)
ResourceDownloader[] getSourceforgeDownloaders(String project_name, String file_name)
getRandomDownloader(ResourceDownloader[])
.
ResourceDownloader getSourceforgeDownloader(String project_name, String file_name)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |