类 Response<T>
java.lang.Object
com.android.volley.Response<T>
- 类型参数:
T- Parsed type of this response
Encapsulates a parsed response for delivery.
-
嵌套类概要
嵌套类修饰符和类型类说明static interfaceCallback interface for delivering error responses.static interfaceCallback interface for delivering parsed responses. -
字段概要
字段修饰符和类型字段说明final Cache.EntryCache metadata for this response, or null in the case of error.final VolleyErrorDetailed error information iferrorCode !booleanTrue if this response was a soft-expired one and a second one MAY be coming.final TParsed response, or null in the case of error. -
方法概要
修饰符和类型方法说明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.booleanReturns whether this response is considered successful.static <T> Response<T>success(T result, Cache.Entry cacheEntry) Returns a successful response containing the parsed result.
-
字段详细资料
-
result
Parsed response, or null in the case of error. -
cacheEntry
Cache metadata for this response, or null in the case of error. -
error
Detailed error information iferrorCode != OK. -
intermediate
public boolean intermediateTrue if this response was a soft-expired one and a second one MAY be coming.
-
-
方法详细资料
-
success
Returns a successful response containing the parsed result. -
error
Returns a failed response containing the given error code and an optional localized message displayed to the user. -
isSuccess
public boolean isSuccess()Returns whether this response is considered successful.
-