Class TorrentDownloaderImpl
java.lang.Object
com.biglybt.pifimpl.local.torrent.TorrentDownloaderImpl
- All Implemented Interfaces:
TorrentDownloader
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected ResourceDownloaderprotected booleanprivate static final LogIDsprotected TorrentManagerImplprotected Stringprotected booleanprotected URL -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedTorrentDownloaderImpl(TorrentManagerImpl _manager, URL _url) protectedTorrentDownloaderImpl(TorrentManagerImpl _manager, URL _url, String _user_name, String _password) -
Method Summary
Modifier and TypeMethodDescriptiondownload()Downloads and prompts the user/guesses the torrent encodingDownloads and tries to use the supplied encoding.private TorrentdownloadSupport(ResourceDownloader downloader) getRequestProperty(String key) voidsetRequestProperty(String key, Object value)
-
Field Details
-
LOGID
-
manager
-
url
-
_downloader
-
encoding_requested
protected boolean encoding_requested -
requested_encoding
-
set_encoding
protected boolean set_encoding
-
-
Constructor Details
-
TorrentDownloaderImpl
-
TorrentDownloaderImpl
protected TorrentDownloaderImpl(TorrentManagerImpl _manager, URL _url, String _user_name, String _password)
-
-
Method Details
-
download
Description copied from interface:TorrentDownloaderDownloads and prompts the user/guesses the torrent encoding- Specified by:
downloadin interfaceTorrentDownloader- Returns:
- Throws:
TorrentException
-
downloadSupport
- Throws:
TorrentException
-
download
Description copied from interface:TorrentDownloaderDownloads and tries to use the supplied encoding. If the supplied encoding isn't valed then a TorrentEncodingException is thrown detailing the valid ones- Specified by:
downloadin interfaceTorrentDownloader- Parameters:
encoding- use "System" for system encoding- Returns:
- Throws:
TorrentException
-
setRequestProperty
- Specified by:
setRequestPropertyin interfaceTorrentDownloader- Parameters:
key- "URL_Cookie" to set cookiesvalue-- Throws:
TorrentException
-
getRequestProperty
- Specified by:
getRequestPropertyin interfaceTorrentDownloader- Parameters:
key- "URL_Cookie" to get cookies- Returns:
- Throws:
TorrentException
-