AndBase开发框架  1.6
 全部  命名空间 文件 函数 变量 枚举值 
Public 成员函数 | Protected 成员函数 | 所有成员列表
com.ab.network.JsonObjectRequest类 参考
类 com.ab.network.JsonObjectRequest 继承关系图:
com.ab.network.JsonRequest< T >

Public 成员函数

 JsonObjectRequest (int method, String url, JSONObject jsonRequest, Listener< JSONObject > listener, ErrorListener errorListener)
 
 JsonObjectRequest (String url, JSONObject jsonRequest, Listener< JSONObject > listener, ErrorListener errorListener)
 
- Public 成员函数 继承自 com.ab.network.JsonRequest< T >
 JsonRequest (String url, String requestBody, Listener< T > listener, ErrorListener errorListener)
 
 JsonRequest (int method, String url, String requestBody, Listener< T > listener, ErrorListener errorListener)
 
String getPostBodyContentType ()
 
byte[] getPostBody ()
 
String getBodyContentType ()
 
byte[] getBody ()
 

Protected 成员函数

Response< JSONObject > parseNetworkResponse (NetworkResponse response)
 
- Protected 成员函数 继承自 com.ab.network.JsonRequest< T >
void deliverResponse (T response)
 
abstract Response< T > parseNetworkResponse (NetworkResponse response)
 

详细描述

A request for retrieving a JSONObject response body at a given URL, allowing for an optional JSONObject to be passed in as part of the request body.

构造及析构函数说明

com.ab.network.JsonObjectRequest.JsonObjectRequest ( int  method,
String  url,
JSONObject  jsonRequest,
Listener< JSONObject >  listener,
ErrorListener  errorListener 
)
inline

Creates a new request.

参数
methodthe HTTP method to use
urlURL to fetch the JSON from
jsonRequestA JSONObject to post with the request. Null is allowed and indicates no parameters will be posted along with request.
listenerListener to receive the JSON response
errorListenerError listener, or null to ignore errors.
com.ab.network.JsonObjectRequest.JsonObjectRequest ( String  url,
JSONObject  jsonRequest,
Listener< JSONObject >  listener,
ErrorListener  errorListener 
)
inline

Constructor which defaults to GET if jsonRequest is null, POST otherwise.

参见
#JsonObjectRequest(int, String, JSONObject, Listener, ErrorListener)

成员函数说明

Response<JSONObject> com.ab.network.JsonObjectRequest.parseNetworkResponse ( NetworkResponse  response)
inlineprotected

该类的文档由以下文件生成: