T
- Parsed type of this responsepublic class Response<T>
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static interface |
Response.ErrorListener
Callback interface for delivering error responses.
|
static interface |
Response.Listener<T>
Callback interface for delivering parsed responses.
|
Modifier and Type | Field and Description |
---|---|
Cache.Entry |
cacheEntry
Cache metadata for this response, or null in the case of error.
|
VolleyError |
error
Detailed error information if
errorCode != OK . |
boolean |
intermediate
True if this response was a soft-expired one and a second one MAY be coming.
|
T |
result
Parsed response, or null in the case of error.
|
Modifier and Type | Method and Description |
---|---|
static <T> Response<T> |
error(VolleyError error)
Returns a failed response containing the given error code and an optional
localized message displayed to the user.
|
boolean |
isSuccess()
Returns whether this response is considered successful.
|
static <T> Response<T> |
success(T result,
Cache.Entry cacheEntry)
Returns a successful response containing the parsed result.
|
public final T result
public final Cache.Entry cacheEntry
public final VolleyError error
errorCode != OK
.public boolean intermediate
public static <T> Response<T> success(T result, Cache.Entry cacheEntry)
public static <T> Response<T> error(VolleyError error)
public boolean isSuccess()