public class HttpCallback<T> extends Object implements org.apache.http.concurrent.FutureCallback<org.apache.http.HttpResponse>
| 构造器和说明 |
|---|
HttpCallback(ResultParser<T> resultParser,
ResultParser<Exception> exceptionParser,
AsyncCallback<T> callback,
String userRequestId) |
| 限定符和类型 | 方法和说明 |
|---|---|
protected void |
buildResponseMessage(org.apache.http.HttpResponse response) |
void |
cancelled() |
void |
completed(org.apache.http.HttpResponse response) |
void |
failed(Exception ex) |
AsyncResult<T> |
getAsyncResult() |
Exception |
getException() |
ResponseMessage |
getResponseMessage() |
String |
getUserRequestId() |
boolean |
isCancelled() |
boolean |
isSuccess() |
static int |
setCallbackThreadCount(int threadCount) |
public HttpCallback(ResultParser<T> resultParser, ResultParser<Exception> exceptionParser, AsyncCallback<T> callback, String userRequestId)
public static int setCallbackThreadCount(int threadCount)
public void completed(org.apache.http.HttpResponse response)
completed 在接口中 org.apache.http.concurrent.FutureCallback<org.apache.http.HttpResponse>protected void buildResponseMessage(org.apache.http.HttpResponse response)
public void failed(Exception ex)
failed 在接口中 org.apache.http.concurrent.FutureCallback<org.apache.http.HttpResponse>public void cancelled()
cancelled 在接口中 org.apache.http.concurrent.FutureCallback<org.apache.http.HttpResponse>public String getUserRequestId()
public boolean isCancelled()
public boolean isSuccess()
public Exception getException()
public ResponseMessage getResponseMessage()
public AsyncResult<T> getAsyncResult()
Copyright © 2016. All Rights Reserved.