|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ResourceDownloaderFactory
Method Summary | |
---|---|
ResourceDownloader |
create(java.io.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(java.net.URL url)
creates a basic downloader. |
ResourceDownloader |
create(java.net.URL url,
boolean force_no_proxy)
Creates a basic downloader, where you can force any configured proxy to be avoided. |
ResourceDownloader |
create(java.net.URL url,
byte[] post_data)
|
ResourceDownloader |
create(java.net.URL url,
java.net.Proxy force_proxy)
|
ResourceDownloader |
create(java.net.URL url,
java.lang.String post_data)
|
ResourceDownloader |
create(java.net.URL url,
java.lang.String post_data,
java.net.Proxy proxy)
|
ResourceDownloader |
create(java.net.URL url,
java.lang.String user_name,
java.lang.String password)
|
ResourceDownloader |
createWithAutoPluginProxy(java.net.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(java.lang.String project_name,
java.lang.String file_name)
Creates a resource downloader which can be used to download a file from a Sourceforge project (from different mirrors). |
ResourceDownloader[] |
getSourceforgeDownloaders(java.lang.String project_name,
java.lang.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,
java.io.File download_directory)
Download a torrent's data to the given download location |
Method Detail |
---|
ResourceDownloader create(java.io.File file)
file
-
ResourceDownloader create(java.net.URL url)
url
-
ResourceDownloader createWithAutoPluginProxy(java.net.URL url)
ResourceDownloader create(java.net.URL url, boolean force_no_proxy)
ResourceDownloader create(java.net.URL url, java.net.Proxy force_proxy)
ResourceDownloader create(java.net.URL url, java.lang.String user_name, java.lang.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, java.io.File download_directory)
downloader
- persistent
- download_directory
-
ResourceDownloader getSuffixBasedDownloader(ResourceDownloader downloader)
url
-
ResourceDownloader create(java.net.URL url, java.lang.String post_data)
url
- postData
-
ResourceDownloader create(java.net.URL url, java.lang.String post_data, java.net.Proxy proxy)
ResourceDownloader create(java.net.URL url, byte[] post_data)
ResourceDownloader[] getSourceforgeDownloaders(java.lang.String project_name, java.lang.String file_name)
getRandomDownloader(ResourceDownloader[])
.
ResourceDownloader getSourceforgeDownloader(java.lang.String project_name, java.lang.String file_name)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |