| AndBase开发框架 1.6

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

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

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

## Public 成员函数
| AbHttpResponseListener ()
abstract void | onStart ()
abstract void | onFinish ()
void | onRetry ()
abstract void | onFailure (int statusCode, String content, Throwable error)
void | onProgress (int bytesWritten, int totalSize)
void | sendStartMessage ()
void | sendFinishMessage ()
void | sendProgressMessage (int bytesWritten, int totalSize)
void | sendFailureMessage (int statusCode, String content, Throwable error)
void | sendRetryMessage ()
void | sendMessage (Message msg)
Handler | getHandler ()
void | setHandler (Handler handler)

## Protected 成员函数
Message | obtainMessage (int responseMessage, Object response)

## Private 属性
Handler | mHandler

## 详细描述

© 2012 amsoft.cn 名称：AbHttpResponseListener.java 描述：Http响应监听器

作者
  还如一梦中

版本
  v1.0

日期
  ：2013-11-13 上午9:00:52

## 构造及析构函数说明

com.ab.http.AbHttpResponseListener.AbHttpResponseListener | ( |  | ) |
| inline

构造.

## 成员函数说明

Handler com.ab.http.AbHttpResponseListener.getHandler | ( |  | ) |
| inline

Gets the handler.

返回
  the handler

Message com.ab.http.AbHttpResponseListener.obtainMessage | ( | int | responseMessage,
|  | Object | response
| ) |  |
| inline protected

构造Message.

参数

  responseMessage | the response message
  response | the response

返回
  the message

abstract void com.ab.http.AbHttpResponseListener.onFailure | ( | int | statusCode,
|  | String | content,
|  | Throwable | error
| ) |  |
| abstract

描述：失败，调用.

参数

  statusCode | the status code
  content | the content
  error | the error

abstract void com.ab.http.AbHttpResponseListener.onFinish | ( |  | ) |
| abstract

完成后调用，失败，成功，调用.

void com.ab.http.AbHttpResponseListener.onProgress | ( | int | bytesWritten,
|  | int | totalSize
| ) |  |
| inline

进度.

参数

  bytesWritten | the bytes written
  totalSize | the total size

void com.ab.http.AbHttpResponseListener.onRetry | ( |  | ) |
| inline

重试.

abstract void com.ab.http.AbHttpResponseListener.onStart | ( |  | ) |
| abstract

描述：获取数据开始.

void com.ab.http.AbHttpResponseListener.sendFailureMessage | ( | int | statusCode,
|  | String | content,
|  | Throwable | error
| ) |  |
| inline

失败消息.

参数

  statusCode | the status code
  content | the content
  error | the error

void com.ab.http.AbHttpResponseListener.sendFinishMessage | ( |  | ) |
| inline

完成消息.

void com.ab.http.AbHttpResponseListener.sendMessage | ( | Message | msg | ) |
| inline

发送消息.

参数

  msg | the msg

void com.ab.http.AbHttpResponseListener.sendProgressMessage | ( | int | bytesWritten,
|  | int | totalSize
| ) |  |
| inline

进度消息.

参数

  bytesWritten | the bytes written
  totalSize | the total size

void com.ab.http.AbHttpResponseListener.sendRetryMessage | ( |  | ) |
| inline

重试消息.

void com.ab.http.AbHttpResponseListener.sendStartMessage | ( |  | ) |
| inline

开始消息.

void com.ab.http.AbHttpResponseListener.setHandler | ( | Handler | handler | ) |
| inline

描述：设置Handler.

参数

  handler | the new handler

## 类成员变量说明

Handler com.ab.http.AbHttpResponseListener.mHandler
| private

The handler.

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

- src/com/ab/http/AbHttpResponseListener.java