类 ClearCacheRequest
- 所有已实现的接口:
Comparable<Request<Object>>
A synthetic request used for clearing the cache.
-
嵌套类概要
从类继承的嵌套类/接口 com.android.volley.Request
Request.Method, Request.Priority -
构造器概要
构造器构造器说明ClearCacheRequest(Cache cache, Runnable callback) Creates a synthetic request for clearing the cache. -
方法概要
修饰符和类型方法说明protected voiddeliverResponse(Object response) Subclasses must implement this to perform delivery of the parsed response to their listeners.Returns theRequest.Priorityof this request;Request.Priority.NORMALby default.booleanReturns true if this request has been canceled.parseNetworkResponse(NetworkResponse response) Subclasses must implement this to parse the raw network response and return an appropriate response type.从类继承的方法 com.android.volley.Request
addMarker, cancel, compareTo, deliverError, getBody, getBodyContentType, getCacheEntry, getCacheKey, getErrorListener, getHeaders, getMethod, getParams, getParamsEncoding, getPostBody, getPostBodyContentType, getPostParams, getPostParamsEncoding, getRetryPolicy, getSequence, getTag, getTimeoutMs, getTrafficStatsTag, getUrl, hasHadResponseDelivered, markDelivered, parseNetworkError, setCacheEntry, setRequestQueue, setRetryPolicy, setSequence, setShouldCache, setTag, shouldCache, toString
-
构造器详细资料
-
ClearCacheRequest
Creates a synthetic request for clearing the cache.- 参数:
cache- Cache to clearcallback- Callback to make on the main thread once the cache is clear, or null for none
-
-
方法详细资料
-
isCanceled
public boolean isCanceled()从类复制的说明:RequestReturns true if this request has been canceled.- 覆盖:
isCanceled在类中Request<Object>
-
getPriority
从类复制的说明:RequestReturns theRequest.Priorityof this request;Request.Priority.NORMALby default.- 覆盖:
getPriority在类中Request<Object>
-
parseNetworkResponse
从类复制的说明:RequestSubclasses must implement this to parse the raw network response and return an appropriate response type. This method will be called from a worker thread. The response will not be delivered if you return null.- 指定者:
parseNetworkResponse在类中Request<Object>- 参数:
response- Response from the network- 返回:
- The parsed response, or null in the case of an error
-
deliverResponse
从类复制的说明:RequestSubclasses must implement this to perform delivery of the parsed response to their listeners. The given response is guaranteed to be non-null; responses that fail to parse are not delivered.- 指定者:
deliverResponse在类中Request<Object>- 参数:
response- The parsed response returned byRequest.parseNetworkResponse(NetworkResponse)
-