com.aliyun.mns.common.http
类 HttpCallback<T>
java.lang.Object
com.aliyun.mns.common.http.HttpCallback<T>
- 所有已实现的接口:
- org.apache.http.concurrent.FutureCallback<org.apache.http.HttpResponse>
public class HttpCallback<T>
- extends Object
- implements org.apache.http.concurrent.FutureCallback<org.apache.http.HttpResponse>
| 从类 java.lang.Object 继承的方法 |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
HttpCallback
public HttpCallback(ResultParser<T> resultParser,
ResultParser<Exception> exceptionParser,
AsyncCallback<T> callback)
completed
public void completed(org.apache.http.HttpResponse response)
- 指定者:
- 接口
org.apache.http.concurrent.FutureCallback<org.apache.http.HttpResponse> 中的 completed
buildResponseMessage
protected void buildResponseMessage(org.apache.http.HttpResponse response)
failed
public void failed(Exception ex)
- 指定者:
- 接口
org.apache.http.concurrent.FutureCallback<org.apache.http.HttpResponse> 中的 failed
cancelled
public void cancelled()
- 指定者:
- 接口
org.apache.http.concurrent.FutureCallback<org.apache.http.HttpResponse> 中的 cancelled
isCancelled
public boolean isCancelled()
isSuccess
public boolean isSuccess()
getException
public Exception getException()
getResponseMessage
public ResponseMessage getResponseMessage()
getAsyncResult
public AsyncResult<T> getAsyncResult()
Copyright © 2016. All Rights Reserved.