public class AsyncHttpRequest
extends java.lang.Object
implements java.lang.Runnable
| Constructor and Description |
|---|
AsyncHttpRequest(cz.msebera.android.httpclient.impl.client.AbstractHttpClient client,
cz.msebera.android.httpclient.protocol.HttpContext context,
cz.msebera.android.httpclient.client.methods.HttpUriRequest request,
ResponseHandlerInterface responseHandler) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
cancel(boolean mayInterruptIfRunning) |
java.lang.Object |
getTag()
Will return TAG of this AsyncHttpRequest
|
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() |
AsyncHttpRequest |
setRequestTag(java.lang.Object TAG)
Will set Object as TAG to this request, wrapped by WeakReference
|
public AsyncHttpRequest(cz.msebera.android.httpclient.impl.client.AbstractHttpClient client,
cz.msebera.android.httpclient.protocol.HttpContext context,
cz.msebera.android.httpclient.client.methods.HttpUriRequest request,
ResponseHandlerInterface responseHandler)
public void onPreProcessRequest(AsyncHttpRequest request)
Please note: pre-processing does NOT run on the main thread, and thus any UI activities that you must perform should be properly dispatched to the app's UI thread.
request - The request to pre-processpublic void onPostProcessRequest(AsyncHttpRequest request)
Please note: post-processing does NOT run on the main thread, and thus any UI activities that you must perform should be properly dispatched to the app's UI thread.
request - The request to post-processpublic void run()
run in interface java.lang.Runnablepublic boolean isCancelled()
public boolean isDone()
public boolean cancel(boolean mayInterruptIfRunning)
public AsyncHttpRequest setRequestTag(java.lang.Object TAG)
TAG - Object used as TAG to this RequestHandlepublic java.lang.Object getTag()