Class TorrentDownloaderFactory
- java.lang.Object
-
- com.biglybt.core.torrentdownloader.TorrentDownloaderFactory
-
public class TorrentDownloaderFactory extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private static class
TorrentDownloaderFactory.TorrentDownloadRetrier
-
Constructor Summary
Constructors Constructor Description TorrentDownloaderFactory()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static TorrentDownloader
create(TorrentDownloaderCallBackInterface callback, java.lang.String url, java.lang.String referrer, java.util.Map request_properties, java.lang.String fileordir)
creates and initializes a TorrentDownloader object with the specified parameters.static TorrentDownloader
downloadManaged(java.lang.String url)
static TorrentDownloader
downloadManaged(java.lang.String url, java.lang.String fileordir)
static TorrentDownloader
downloadToLocationManaged(java.lang.String url, java.lang.String save_path)
static void
initManager(GlobalManager gm, boolean autostart)
-
-
-
Method Detail
-
create
public static TorrentDownloader create(TorrentDownloaderCallBackInterface callback, java.lang.String url, java.lang.String referrer, java.util.Map request_properties, java.lang.String fileordir)
creates and initializes a TorrentDownloader object with the specified parameters. NOTE: this does not actually start the TorrentDownloader object- Parameters:
callback
- object to notify about torrent download statusurl
- url of torrent file to downloadreferrer
- url of referrer to set as HTTP_REFERER header when requesting torrentfileordir
- path to a file or directory that the actual torrent file should be saved to. if a default save directory is not specified, this will be used instead. even if a default save directory is specified, if this parameter path refers to a file, the filename will be used when saving the torrent- Returns:
-
initManager
public static void initManager(GlobalManager gm, boolean autostart)
-
downloadManaged
public static TorrentDownloader downloadManaged(java.lang.String url, java.lang.String fileordir)
-
downloadManaged
public static TorrentDownloader downloadManaged(java.lang.String url)
-
downloadToLocationManaged
public static TorrentDownloader downloadToLocationManaged(java.lang.String url, java.lang.String save_path)
-
-