Java Code Examples for com.lidroid.xutils.http.HttpHandler#stop()
The following examples show how to use
com.lidroid.xutils.http.HttpHandler#stop() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: DownloadManager.java From AndroidAppCodeFramework with Apache License 2.0 | 5 votes |
public void removeDownload(DownloadInfo downloadInfo) throws DbException { HttpHandler<File> handler = downloadInfo.getHandler(); if (handler != null && !handler.isStopped()) { handler.stop(); } downloadInfoList.remove(downloadInfo); db.delete(downloadInfo); }
Example 2
Source File: DownloadManager.java From AndroidAppCodeFramework with Apache License 2.0 | 5 votes |
public void stopDownload(DownloadInfo downloadInfo) throws DbException { HttpHandler<File> handler = downloadInfo.getHandler(); if (handler != null && !handler.isStopped()) { handler.stop(); } else { downloadInfo.setState(HttpHandler.State.STOPPED); } db.saveOrUpdate(downloadInfo); }
Example 3
Source File: DownloadManager.java From AndroidAppCodeFramework with Apache License 2.0 | 5 votes |
public void stopAllDownload() throws DbException { for (DownloadInfo downloadInfo : downloadInfoList) { HttpHandler<File> handler = downloadInfo.getHandler(); if (handler != null && !handler.isStopped()) { handler.stop(); } else { downloadInfo.setState(HttpHandler.State.STOPPED); } } db.saveOrUpdateAll(downloadInfoList); }
Example 4
Source File: DownloadManager.java From AndroidAppCodeFramework with Apache License 2.0 | 5 votes |
public void removeDownload(DownloadInfo downloadInfo) throws DbException { HttpHandler<File> handler = downloadInfo.getHandler(); if (handler != null && !handler.isStopped()) { handler.stop(); } downloadInfoList.remove(downloadInfo); db.delete(downloadInfo); }
Example 5
Source File: DownloadManager.java From AndroidAppCodeFramework with Apache License 2.0 | 5 votes |
public void stopDownload(DownloadInfo downloadInfo) throws DbException { HttpHandler<File> handler = downloadInfo.getHandler(); if (handler != null && !handler.isStopped()) { handler.stop(); } else { downloadInfo.setState(HttpHandler.State.STOPPED); } db.saveOrUpdate(downloadInfo); }
Example 6
Source File: DownloadManager.java From AndroidAppCodeFramework with Apache License 2.0 | 5 votes |
public void stopAllDownload() throws DbException { for (DownloadInfo downloadInfo : downloadInfoList) { HttpHandler<File> handler = downloadInfo.getHandler(); if (handler != null && !handler.isStopped()) { handler.stop(); } else { downloadInfo.setState(HttpHandler.State.STOPPED); } } db.saveOrUpdateAll(downloadInfoList); }