public interface DownloadPoolListener
| 限定符和类型 | 方法和说明 |
|---|---|
boolean |
afterExecute(DownloadTask downloadTask)
下载线程开始执行后
|
boolean |
beforeDownload(cn.schoolwow.quickhttp.response.Response response,
Path file)
开始下载数据之前
|
void |
downloadFail(cn.schoolwow.quickhttp.response.Response response,
Path file,
Exception exception)
文件下载失败时
|
void |
downloadFinished(cn.schoolwow.quickhttp.response.Response response,
Path file)
文件下载完成时
|
void |
downloadSuccess(cn.schoolwow.quickhttp.response.Response response,
Path file)
文件下载成功时
|
boolean afterExecute(DownloadTask downloadTask)
downloadTask - 下载任务boolean beforeDownload(cn.schoolwow.quickhttp.response.Response response,
Path file)
response - http请求响应file - 文件路径void downloadSuccess(cn.schoolwow.quickhttp.response.Response response,
Path file)
response - http请求响应file - 文件路径void downloadFail(cn.schoolwow.quickhttp.response.Response response,
Path file,
Exception exception)
response - http请求响应file - 文件路径exception - 异常对象void downloadFinished(cn.schoolwow.quickhttp.response.Response response,
Path file)
response - http请求响应file - 文件路径Copyright © 2021. All rights reserved.