com.aelitis.net.upnp.impl.services
Class UPnPSSOfflineDownloaderImpl
java.lang.Object
com.aelitis.net.upnp.impl.services.UPnPSSOfflineDownloaderImpl
- All Implemented Interfaces:
- UPnPOfflineDownloader, UPnPSpecificService
public class UPnPSSOfflineDownloaderImpl
- extends java.lang.Object
- implements UPnPOfflineDownloader
Method Summary |
void |
activate(java.lang.String client_id)
|
java.lang.String |
addDownload(java.lang.String client_id,
java.lang.String hash,
java.lang.String torrent)
|
java.lang.String |
addDownloadChunked(java.lang.String client_id,
java.lang.String hash,
java.lang.String chunk,
int offset,
int total_size)
|
long |
getFreeSpace(java.lang.String client_id)
|
UPnPService |
getGenericService()
|
java.lang.String |
removeDownload(java.lang.String client_id,
java.lang.String hash)
|
java.lang.String[] |
setDownloads(java.lang.String client_id,
java.lang.String hash_list)
|
java.lang.String[] |
startDownload(java.lang.String client_id,
java.lang.String hash)
|
java.lang.String[] |
updateDownload(java.lang.String client_id,
java.lang.String hash,
java.lang.String required_map)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
UPnPSSOfflineDownloaderImpl
protected UPnPSSOfflineDownloaderImpl(UPnPServiceImpl _service)
getGenericService
public UPnPService getGenericService()
- Specified by:
getGenericService
in interface UPnPSpecificService
getFreeSpace
public long getFreeSpace(java.lang.String client_id)
throws UPnPException
- Specified by:
getFreeSpace
in interface UPnPOfflineDownloader
- Throws:
UPnPException
activate
public void activate(java.lang.String client_id)
throws UPnPException
- Specified by:
activate
in interface UPnPOfflineDownloader
- Throws:
UPnPException
setDownloads
public java.lang.String[] setDownloads(java.lang.String client_id,
java.lang.String hash_list)
throws UPnPException
- Specified by:
setDownloads
in interface UPnPOfflineDownloader
- Throws:
UPnPException
addDownload
public java.lang.String addDownload(java.lang.String client_id,
java.lang.String hash,
java.lang.String torrent)
throws UPnPException
- Specified by:
addDownload
in interface UPnPOfflineDownloader
- Throws:
UPnPException
addDownloadChunked
public java.lang.String addDownloadChunked(java.lang.String client_id,
java.lang.String hash,
java.lang.String chunk,
int offset,
int total_size)
throws UPnPException
- Specified by:
addDownloadChunked
in interface UPnPOfflineDownloader
- Throws:
UPnPException
updateDownload
public java.lang.String[] updateDownload(java.lang.String client_id,
java.lang.String hash,
java.lang.String required_map)
throws UPnPException
- Specified by:
updateDownload
in interface UPnPOfflineDownloader
- Throws:
UPnPException
removeDownload
public java.lang.String removeDownload(java.lang.String client_id,
java.lang.String hash)
throws UPnPException
- Specified by:
removeDownload
in interface UPnPOfflineDownloader
- Throws:
UPnPException
startDownload
public java.lang.String[] startDownload(java.lang.String client_id,
java.lang.String hash)
throws UPnPException
- Specified by:
startDownload
in interface UPnPOfflineDownloader
- Throws:
UPnPException