public class AsyncHttpRequest
extends java.lang.Object
implements java.lang.Runnable
| 构造器和说明 |
|---|
AsyncHttpRequest(AbstractHttpClient client,
HttpContext context,
HttpUriRequest request,
ResponseHandlerInterface responseHandler) |
| 限定符和类型 | 方法和说明 |
|---|---|
boolean |
cancel(boolean mayInterruptIfRunning) |
boolean |
isCancelled() |
boolean |
isDone() |
void |
onPostProcessRequest(AsyncHttpRequest request)
This method is called once by the system when the request has been fully
sent, handled and finished.
|
void |
onPreProcessRequest(AsyncHttpRequest request)
This method is called once by the system when the request is about to be
processed by the system.
|
void |
run() |
public AsyncHttpRequest(AbstractHttpClient client,
HttpContext context,
HttpUriRequest request,
ResponseHandlerInterface responseHandler)
public void onPreProcessRequest(AsyncHttpRequest request)
request - The request to pre-processpublic void onPostProcessRequest(AsyncHttpRequest request)
request - The request to post-processpublic void run()
run 在接口中 java.lang.Runnablepublic boolean isCancelled()
public boolean isDone()
public boolean cancel(boolean mayInterruptIfRunning)