|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.android.volley.Request<Object> com.android.volley.toolbox.ClearCacheRequest
public class ClearCacheRequest
A synthetic request used for clearing the cache.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class com.android.volley.Request |
---|
Request.Method, Request.Priority |
Constructor Summary | |
---|---|
ClearCacheRequest(Cache cache,
Runnable callback)
Creates a synthetic request for clearing the cache. |
Method Summary | |
---|---|
protected void |
deliverResponse(Object response)
Subclasses must implement this to perform delivery of the parsed response to their listeners. |
Request.Priority |
getPriority()
Returns the Request.Priority of this request; Request.Priority.NORMAL by default. |
boolean |
isCanceled()
Returns true if this request has been canceled. |
protected Response<Object> |
parseNetworkResponse(NetworkResponse response)
Subclasses must implement this to parse the raw network response and return an appropriate response type. |
Methods inherited from class com.android.volley.Request |
---|
addMarker, cancel, compareTo, deliverError, getBody, getBodyContentType, getCacheEntry, getCacheKey, 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 |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ClearCacheRequest(Cache cache, Runnable callback)
cache
- Cache to clearcallback
- Callback to make on the main thread once the cache is clear,
or null for noneMethod Detail |
---|
public boolean isCanceled()
Request
isCanceled
in class Request<Object>
public Request.Priority getPriority()
Request
Request.Priority
of this request; Request.Priority.NORMAL
by default.
getPriority
in class Request<Object>
protected Response<Object> parseNetworkResponse(NetworkResponse response)
Request
parseNetworkResponse
in class Request<Object>
response
- Response from the network
protected void deliverResponse(Object response)
Request
deliverResponse
in class Request<Object>
response
- The parsed response returned by
Request.parseNetworkResponse(NetworkResponse)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |