public static class SonicDownloadClient.DownloadTask
extends java.lang.Object
限定符和类型 | 字段和说明 |
---|---|
java.util.List<SonicDownloadCallback> |
mCallbacks
list of download callback
|
java.lang.String |
mCookie
cookie to be set in the http download request
|
java.io.InputStream |
mInputStream
the network stream or memory stream or the bridge stream
|
java.lang.String |
mIpAddress
ip address instead of host to launch a http request
|
java.lang.String |
mResourceUrl
url of the resource to be download
|
java.util.Map<java.lang.String,java.util.List<java.lang.String>> |
mRspHeaders
the download request's response headers
|
java.util.concurrent.atomic.AtomicInteger |
mState
the task's download state
|
java.util.concurrent.atomic.AtomicBoolean |
mWasInterceptInvoked
whether the task's responding resource was intercepted by kernel
|
static int |
STATE_DOWNLOADED
the task is in download complete state.
|
static int |
STATE_DOWNLOADING
the task is in downloading state.
|
static int |
STATE_INITIATE
download in initiate state.
|
static int |
STATE_LOAD_FROM_CACHE
the task is load from cache, not from network.
|
static int |
STATE_QUEUEING
download in queueing state.
|
构造器和说明 |
---|
DownloadTask() |
public static final int STATE_INITIATE
public static final int STATE_QUEUEING
public static final int STATE_DOWNLOADING
public static final int STATE_DOWNLOADED
public static final int STATE_LOAD_FROM_CACHE
public java.lang.String mResourceUrl
public java.lang.String mIpAddress
public java.lang.String mCookie
public java.util.Map<java.lang.String,java.util.List<java.lang.String>> mRspHeaders
public java.io.InputStream mInputStream
public java.util.concurrent.atomic.AtomicInteger mState
public final java.util.concurrent.atomic.AtomicBoolean mWasInterceptInvoked
public java.util.List<SonicDownloadCallback> mCallbacks