| AndBase开发框架 1.6

- 首页
- 相关页面
- 命名空间
- 类
- 文件

- 类列表
- 类索引
- 类继承关系
- 类成员

全部 类 命名空间 文件 函数 变量 枚举值 页
Public 成员函数 | Protected 成员函数 | 所有成员列表
com.ab.network.JsonObjectRequest类 参考
类 com.ab.network.JsonObjectRequest 继承关系图:

## 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.

参数

  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.

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 | ) |
| inline protected

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

- src/com/ab/network/JsonObjectRequest.java