use of com.biglybt.pifimpl.remote.RPRequest in project BiglyBT by BiglySoftware.
the class RPTorrentDownloader method download.
@Override
public Torrent download(String encoding) throws TorrentException {
try {
RPTorrent resp = (RPTorrent) _dispatcher.dispatch(new RPRequest(this, "download[String]", new Object[] { encoding })).getResponse();
resp._setRemote(_dispatcher);
return (resp);
} catch (RPException e) {
if (e.getCause() instanceof TorrentException) {
throw ((TorrentException) e.getCause());
}
throw (e);
}
}
use of com.biglybt.pifimpl.remote.RPRequest in project BiglyBT by BiglySoftware.
the class RPTorrentManager method getURLDownloader.
@Override
public TorrentDownloader getURLDownloader(URL url, String user_name, String password) throws TorrentException {
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);
}
}
use of com.biglybt.pifimpl.remote.RPRequest in project BiglyBT by BiglySoftware.
the class RPTorrentManager method createFromBEncodedData.
@Override
public Torrent createFromBEncodedData(byte[] data) throws TorrentException {
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);
}
}
use of com.biglybt.pifimpl.remote.RPRequest in project BiglyBT by BiglySoftware.
the class RPIPFilter method createAndAddRange.
@Override
public IPRange createAndAddRange(String description, String start_ip, String end_ip, boolean this_session_only) {
RPIPRange resp = (RPIPRange) _dispatcher.dispatch(new RPRequest(this, "createAndAddRange[String,String,String,boolean]", new Object[] { description, start_ip, end_ip, Boolean.valueOf(this_session_only) })).getResponse();
resp._setRemote(_dispatcher);
return (resp);
}
use of com.biglybt.pifimpl.remote.RPRequest in project BiglyBT by BiglySoftware.
the class RPTorrentDownloader method download.
// ************************************************************************
@Override
public Torrent download() throws TorrentException {
try {
RPTorrent resp = (RPTorrent) _dispatcher.dispatch(new RPRequest(this, "download", null)).getResponse();
resp._setRemote(_dispatcher);
return (resp);
} catch (RPException e) {
if (e.getCause() instanceof TorrentException) {
throw ((TorrentException) e.getCause());
}
throw (e);
}
}
Aggregations