public interface IHttpCallback
Modifier and Type | Method and Description |
---|---|
int |
failure(HttpResponse resp)
当连接失败或Http返回状态码非200 OK时调用
|
int |
success(HttpResponse resp)
返回Http状态200 OK的调用, 根据协议要求处理,如果失败请返回负数
String result = EntityUtils.toString(resp.getEntity(),ReqUtils.DEFAULT_ENCODING); |
int success(HttpResponse resp) throws java.io.IOException
resp
- java.io.IOException
int failure(HttpResponse resp) throws java.io.IOException
resp
- java.io.IOException
Copyright © 2019 by Sucang.cn