|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.android.volley.Response<T>
T
- Parsed type of this responsepublic class Response<T>
Encapsulates a parsed response for delivery.
Nested Class Summary | |
---|---|
static interface |
Response.ErrorListener
Callback interface for delivering error responses. |
static interface |
Response.Listener<T>
Callback interface for delivering parsed responses. |
Field Summary | |
---|---|
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. |
Method Summary | ||
---|---|---|
static
|
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
|
success(T result,
Cache.Entry cacheEntry)
Returns a successful response containing the parsed result. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public final T result
public final Cache.Entry cacheEntry
public final VolleyError error
errorCode != OK
.
public boolean intermediate
Method Detail |
---|
public static <T> Response<T> success(T result, Cache.Entry cacheEntry)
public static <T> Response<T> error(VolleyError error)
public boolean isSuccess()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |