public void run() {
this.request.asJsonAsync(new Callback<JsonNode>() {
@Override
public void completed(HttpResponse<JsonNode> response) {
callback.run(response);
runFinished = true;
runCounter++;
}
@Override
public void failed(UnirestException e) {
try {
HttpResponse<String> s = request.asString();
callback.error(e, s.getBody());
}
catch (Exception e2) {
callback.error(e2);
}
runFinished = true;
failCounter++;
}
@Override
public void cancelled() {
callback.error(new Exception("Request was cancelled"));
runFinished = true;
}
});
}
Requester.java 文件源码
java
阅读 30
收藏 0
点赞 0
评论 0
项目:wandora
作者:
评论列表
文章目录