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

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 
)
inlineprotected

构造Message.

参数
responseMessagethe response message
responsethe response
返回
the message
abstract void com.ab.http.AbHttpResponseListener.onFailure ( int  statusCode,
String  content,
Throwable  error 
)
abstract

描述:失败,调用.

参数
statusCodethe status code
contentthe content
errorthe error
abstract void com.ab.http.AbHttpResponseListener.onFinish ( )
abstract

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

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

进度.

参数
bytesWrittenthe bytes written
totalSizethe 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

失败消息.

参数
statusCodethe status code
contentthe content
errorthe error
void com.ab.http.AbHttpResponseListener.sendFinishMessage ( )
inline

完成消息.

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

发送消息.

参数
msgthe msg
void com.ab.http.AbHttpResponseListener.sendProgressMessage ( int  bytesWritten,
int  totalSize 
)
inline

进度消息.

参数
bytesWrittenthe bytes written
totalSizethe 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.

参数
handlerthe new handler

类成员变量说明

Handler com.ab.http.AbHttpResponseListener.mHandler
private

The handler.


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