Methods Summary |
---|
public RPReply | _process(RPRequest request)
String method = request.getMethod();
Object[] params = request.getParams();
if ( method.equals( "getURLDownloader[URL]")){
try{
TorrentDownloader dl = delegate.getURLDownloader((URL)params[0]);
RPTorrentDownloader res = RPTorrentDownloader.create( dl );
return( new RPReply( res ));
}catch( TorrentException e ){
return( new RPReply( e ));
}
}else if ( method.equals( "getURLDownloader[URL,String,String]")){
try{
TorrentDownloader dl = delegate.getURLDownloader((URL)params[0],(String)params[1],(String)params[2]);
RPTorrentDownloader res = RPTorrentDownloader.create( dl );
return( new RPReply( res ));
}catch( TorrentException e ){
return( new RPReply( e ));
}
}else if ( method.equals( "createFromBEncodedData[byte[]]")){
try{
return( new RPReply( RPTorrent.create( delegate.createFromBEncodedData((byte[])params[0]))));
}catch( TorrentException e ){
return( new RPReply(e));
}
}
throw( new RPException( "Unknown method: " + method ));
|
protected void | _setDelegate(java.lang.Object _delegate)
delegate = (TorrentManager)_delegate;
|
public java.lang.Object | _setLocal()
return( _fixupLocal());
|
public void | addListener(TorrentManagerListener l)
notSupported();
|
public static org.gudy.azureus2.pluginsimpl.remote.torrent.RPTorrentManager | create(TorrentManager _delegate)
RPTorrentManager res =(RPTorrentManager)_lookupLocal( _delegate );
if ( res == null ){
res = new RPTorrentManager( _delegate );
}
return( res );
|
public Torrent | createFromBEncodedData(byte[] data)
try{
RPTorrent res = (RPTorrent)_dispatcher.dispatch( new RPRequest( this, "createFromBEncodedData[byte[]]", new Object[]{data})).getResponse();
res._setRemote( _dispatcher );
return( res );
}catch( RPException e ){
if ( e.getCause() instanceof TorrentException ){
throw((TorrentException)e.getCause());
}
throw( e );
}
|
public Torrent | createFromBEncodedData(byte[] data, int preserve)
notSupported();
return( null );
|
public Torrent | createFromBEncodedFile(java.io.File file, int preserve)
notSupported();
return( null );
|
public Torrent | createFromBEncodedFile(java.io.File file)
notSupported();
return( null );
|
public Torrent | createFromBEncodedFile(java.io.File file, boolean for_seeding)
notSupported();
return( null );
|
public Torrent | createFromBEncodedInputStream(java.io.InputStream data)
notSupported();
return( null );
|
public Torrent | createFromBEncodedInputStream(java.io.InputStream data, int preserve)
notSupported();
return( null );
|
public Torrent | createFromDataFile(java.io.File data, java.net.URL announce_url)
notSupported();
return( null );
|
public Torrent | createFromDataFile(java.io.File data, java.net.URL announce_url, boolean include_other_hashes)
notSupported();
return( null );
|
public TorrentCreator | createFromDataFileEx(java.io.File data, java.net.URL announce_url, boolean include_other_hashes)
notSupported();
return( null );
|
public TorrentAttribute | getAttribute(java.lang.String name)
notSupported();
return( null );
|
public TorrentAttribute[] | getDefinedAttributes()
notSupported();
return( null );
|
public TorrentAttribute | getPluginAttribute(java.lang.String name)
notSupported();
return( null );
|
public TorrentDownloader | getURLDownloader(java.net.URL url)
try{
RPTorrentDownloader resp = (RPTorrentDownloader)_dispatcher.dispatch( new RPRequest( this, "getURLDownloader[URL]", new Object[]{url})).getResponse();
resp._setRemote( _dispatcher );
return( resp );
}catch( RPException e ){
if ( e.getCause() instanceof TorrentException ){
throw((TorrentException)e.getCause());
}
throw( e );
}
|
public TorrentDownloader | getURLDownloader(java.net.URL url, java.lang.String user_name, java.lang.String password)
try{
RPTorrentDownloader resp = (RPTorrentDownloader)_dispatcher.dispatch( new RPRequest( this, "getURLDownloader[URL,String,String]", new Object[]{url, user_name, password})).getResponse();
resp._setRemote( _dispatcher );
return( resp );
}catch( RPException e ){
if ( e.getCause() instanceof TorrentException ){
throw((TorrentException)e.getCause());
}
throw( e );
}
|
public void | removeListener(TorrentManagerListener l)
notSupported();
|