Class RPTorrentDownloader
java.lang.Object
com.biglybt.pifimpl.remote.RPObject
com.biglybt.pifimpl.remote.torrent.RPTorrentDownloader
- All Implemented Interfaces:
TorrentDownloader
,Serializable
- See Also:
-
Field Summary
FieldsFields inherited from class com.biglybt.pifimpl.remote.RPObject
__delegate, _dispatcher, _object_id, next_key, object_registry, object_registry_reverse
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void
_setDelegate
(Object _delegate) static RPTorrentDownloader
create
(TorrentDownloader _delegate) download()
Downloads and prompts the user/guesses the torrent encodingDownloads and tries to use the supplied encoding.getRequestProperty
(String key) void
setRequestProperty
(String key, Object value) Methods inherited from class com.biglybt.pifimpl.remote.RPObject
_fixupLocal, _getDelegate, _getName, _getOID, _lookupLocal, _lookupLocal, _refresh, _setRemote, getDispatcher, notSupported, notSupported
-
Field Details
-
delegate
-
-
Constructor Details
-
RPTorrentDownloader
-
-
Method Details
-
create
-
_setDelegate
- Overrides:
_setDelegate
in classRPObject
-
_setLocal
- Overrides:
_setLocal
in classRPObject
- Throws:
RPException
-
_process
-
download
Description copied from interface:TorrentDownloader
Downloads and prompts the user/guesses the torrent encoding- Specified by:
download
in interfaceTorrentDownloader
- Returns:
- Throws:
TorrentException
-
download
Description copied from interface:TorrentDownloader
Downloads 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:
download
in interfaceTorrentDownloader
- Parameters:
encoding
- use "System" for system encoding- Returns:
- Throws:
TorrentException
-
setRequestProperty
- Specified by:
setRequestProperty
in interfaceTorrentDownloader
- Parameters:
key
- "URL_Cookie" to set cookies- Throws:
TorrentException
-
getRequestProperty
- Specified by:
getRequestProperty
in interfaceTorrentDownloader
- Parameters:
key
- "URL_Cookie" to get cookies- Returns:
- Throws:
TorrentException
-