public class HttpResult
extends java.lang.Object
限定符和类型 | 字段和说明 |
---|---|
java.lang.String |
contentType
download file content type.
|
java.lang.String |
data
Raw data from this response.
|
static int |
ERROR_AUTH_FAIL
错误类型-权限错误
|
static int |
ERROR_CANCELED
错误类型-主动取消
|
static int |
ERROR_NETWORK
错误类型-网络错误
|
static int |
ERROR_NO_CONNECTION
错误类型-连接错误
|
static int |
ERROR_NONE
错误类型-无错误
|
static int |
ERROR_PARSE
错误类型-数据格式错误
|
static int |
ERROR_SERVER
错误类型-服务器错误
|
static int |
ERROR_TIME_OUT
错误类型-请求超时
|
static int |
ERROR_UNKOWN
错误类型-未知错误
|
long |
fileSize
post or download file size.
|
java.util.Map<java.lang.String,java.lang.String> |
headers
Response headers.
|
java.lang.String |
savePath
download file local path.
|
int |
statusCode
The HTTP status code.
|
构造器和说明 |
---|
HttpResult(int statusCode)
请求结果的载体
|
限定符和类型 | 方法和说明 |
---|---|
int |
getErrorType()
获取错误类型
|
boolean |
success()
请求是否成功
|
public static final int ERROR_NONE
public static final int ERROR_UNKOWN
public static final int ERROR_NETWORK
public static final int ERROR_NO_CONNECTION
public static final int ERROR_PARSE
public static final int ERROR_SERVER
public static final int ERROR_TIME_OUT
public static final int ERROR_AUTH_FAIL
public static final int ERROR_CANCELED
public final int statusCode
public java.lang.String data
public java.util.Map<java.lang.String,java.lang.String> headers
public long fileSize
public java.lang.String savePath
public java.lang.String contentType