| Package | Description |
|---|---|
| com.hannesdorfmann.httpkit.threading |
| Modifier and Type | Class and Description |
|---|---|
class |
HttpClientTask<T>
A
HttpTask that uses apaches HttpClient for retrieving /
transmitting data from / to the web server
It supports:
Reading e-Tag< and write then to cache
charset encoding of the Content-Type Header field
|
| Modifier and Type | Method and Description |
|---|---|
int |
HttpClientTask.compareTo(HttpTask<?> another) |
void |
PriorityThreadPoolHttpExecutor.onHttpTaskCanceled(HttpTask<?> task) |
void |
HttpTask.HttpTaskCanceledListener.onHttpTaskCanceled(HttpTask<?> task)
Called when an
HttpRequest has been canceled, so the
corresponding HttpTask gets canceled too. |
void |
PriorityThreadPoolHttpExecutor.onHttpTaskFailed(HttpTask<?> httpTask,
Exception exception) |
void |
HttpTask.HttpTaskFinishedListener.onHttpTaskFailed(HttpTask<?> httpTask,
Exception exception)
Called to inform, that a {@link HttpClientTasHttpClientTaskete, because
an error (exception) has been thrown
|
void |
PriorityThreadPoolHttpExecutor.onHttpTaskPriorityChanged(HttpTask<?> task,
int newPriority) |
void |
HttpTask.HttpTaskPriorityChangedListener.onHttpTaskPriorityChanged(HttpTask<?> task,
int newPriority)
Called when the
HttpRequest has changed his priority, so the
HttpTask depends on the HttpRequest priority |
void |
PriorityThreadPoolHttpExecutor.onHttpTaskStarted(HttpTask<?> task) |
void |
HttpTask.HttpTaskStartedListner.onHttpTaskStarted(HttpTask<?> task)
This method gets called when an
HttpTask has started right
now |
void |
PriorityThreadPoolHttpExecutor.onHttpTaskSuccessful(HttpTask<?> httpTask,
HttpResponse response) |
void |
HttpTask.HttpTaskFinishedListener.onHttpTaskSuccessful(HttpTask<?> httpTask,
HttpResponse response)
Called to inform, that a
HttpClientTask has finished successfully |
boolean |
PriorityThreadPoolHttpExecutor.submitTask(HttpTask<?> task) |
boolean |
HttpExecutor.submitTask(HttpTask<?> task)
Add a task to the
HttpExecutor. |
Copyright © 2015 Hannes Dorfmann. All rights reserved.