Class RPTorrentDownloader
- java.lang.Object
-
- com.biglybt.pifimpl.remote.RPObject
-
- com.biglybt.pifimpl.remote.torrent.RPTorrentDownloader
-
- All Implemented Interfaces:
TorrentDownloader
,java.io.Serializable
public class RPTorrentDownloader extends RPObject implements TorrentDownloader
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected TorrentDownloader
delegate
-
Fields inherited from class com.biglybt.pifimpl.remote.RPObject
__delegate, _dispatcher, _object_id, next_key, object_registry, object_registry_reverse
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
RPTorrentDownloader(TorrentDownloader _delegate)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description RPReply
_process(RPRequest request)
protected void
_setDelegate(java.lang.Object _delegate)
java.lang.Object
_setLocal()
static RPTorrentDownloader
create(TorrentDownloader _delegate)
Torrent
download()
Downloads and prompts the user/guesses the torrent encodingTorrent
download(java.lang.String encoding)
Downloads and tries to use the supplied encoding.java.lang.Object
getRequestProperty(java.lang.String key)
void
setRequestProperty(java.lang.String key, java.lang.Object value)
-
Methods inherited from class com.biglybt.pifimpl.remote.RPObject
_fixupLocal, _getDelegate, _getName, _getOID, _lookupLocal, _lookupLocal, _refresh, _setRemote, getDispatcher, notSupported, notSupported
-
-
-
-
Field Detail
-
delegate
protected transient TorrentDownloader delegate
-
-
Constructor Detail
-
RPTorrentDownloader
protected RPTorrentDownloader(TorrentDownloader _delegate)
-
-
Method Detail
-
create
public static RPTorrentDownloader create(TorrentDownloader _delegate)
-
_setDelegate
protected void _setDelegate(java.lang.Object _delegate)
- Overrides:
_setDelegate
in classRPObject
-
_setLocal
public java.lang.Object _setLocal() throws RPException
- Overrides:
_setLocal
in classRPObject
- Throws:
RPException
-
download
public Torrent download() throws TorrentException
Description copied from interface:TorrentDownloader
Downloads and prompts the user/guesses the torrent encoding- Specified by:
download
in interfaceTorrentDownloader
- Returns:
- Throws:
TorrentException
-
download
public Torrent download(java.lang.String encoding) throws TorrentException
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
public void setRequestProperty(java.lang.String key, java.lang.Object value) throws TorrentException
- Specified by:
setRequestProperty
in interfaceTorrentDownloader
- Parameters:
key
- "URL_Cookie" to set cookies- Throws:
TorrentException
-
getRequestProperty
public java.lang.Object getRequestProperty(java.lang.String key) throws TorrentException
- Specified by:
getRequestProperty
in interfaceTorrentDownloader
- Parameters:
key
- "URL_Cookie" to get cookies- Returns:
- Throws:
TorrentException
-
-