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.
|
inline |
Creates a new request.
| method | the HTTP method to use |
| url | URL to fetch the JSON from |
| jsonRequest | A JSONObject to post with the request. Null is allowed and indicates no parameters will be posted along with request. |
| listener | Listener to receive the JSON response |
| errorListener | Error listener, or null to ignore errors. |
|
inline |
Constructor which defaults to GET if jsonRequest is null, POST otherwise.
|
inlineprotected |
1.8.8