org.gudy.azureus2.pluginsimpl.remote.torrent
Class RPTorrentDownloader

java.lang.Object
  extended by org.gudy.azureus2.pluginsimpl.remote.RPObject
      extended by org.gudy.azureus2.pluginsimpl.remote.torrent.RPTorrentDownloader
All Implemented Interfaces:
Serializable, TorrentDownloader

public class RPTorrentDownloader
extends RPObject
implements TorrentDownloader

See Also:
Serialized Form

Field Summary
protected  TorrentDownloader delegate
           
 
Fields inherited from class org.gudy.azureus2.pluginsimpl.remote.RPObject
__delegate, _dispatcher, _object_id, next_key, object_registry, object_registry_reverse
 
Constructor Summary
protected RPTorrentDownloader(TorrentDownloader _delegate)
           
 
Method Summary
 RPReply _process(RPRequest request)
           
protected  void _setDelegate(Object _delegate)
           
 Object _setLocal()
           
static RPTorrentDownloader create(TorrentDownloader _delegate)
           
 Torrent download()
          Downloads and prompts the user/guesses the torrent encoding
 Torrent download(String encoding)
          Downloads and tries to use the supplied encoding.
 Object getRequestProperty(String key)
           
 void setRequestProperty(String key, Object value)
           
 
Methods inherited from class org.gudy.azureus2.pluginsimpl.remote.RPObject
_fixupLocal, _getDelegate, _getName, _getOID, _lookupLocal, _lookupLocal, _refresh, _setRemote, getDispatcher, notSupported, notSupported
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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(Object _delegate)
Overrides:
_setDelegate in class RPObject

_setLocal

public Object _setLocal()
                 throws RPException
Overrides:
_setLocal in class RPObject
Throws:
RPException

_process

public RPReply _process(RPRequest request)
Overrides:
_process in class RPObject

download

public Torrent download()
                 throws TorrentException
Description copied from interface: TorrentDownloader
Downloads and prompts the user/guesses the torrent encoding

Specified by:
download in interface TorrentDownloader
Returns:
Throws:
TorrentException

download

public Torrent download(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 interface TorrentDownloader
Parameters:
encoding - use "System" for system encoding
Returns:
Throws:
TorrentException

setRequestProperty

public void setRequestProperty(String key,
                               Object value)
                        throws TorrentException
Specified by:
setRequestProperty in interface TorrentDownloader
Parameters:
key - "URL_Cookie" to set cookies
Throws:
TorrentException

getRequestProperty

public Object getRequestProperty(String key)
                          throws TorrentException
Specified by:
getRequestProperty in interface TorrentDownloader
Parameters:
key - "URL_Cookie" to get cookies
Returns:
Throws:
TorrentException