| Modifier and Type | Method and Description |
|---|---|
HttpRequest |
DefaultHttpKit.DefaultCacheRetriever.getHttpRequest() |
| Modifier and Type | Method and Description |
|---|---|
<T> void |
HttpKit.execute(HttpRequest request,
HttpResponseReceiver<T> receiver)
Executes a
HttpRequest with parsing the result according the
returned mime type. |
<T> void |
DefaultHttpKit.execute(HttpRequest request,
HttpResponseReceiver<T> receiver) |
protected <T> void |
DefaultHttpKit.scheduleHttpRequest(HttpRequest request,
HttpResponseReceiver<T> receiver)
Schedules a HttpRequest to be executed to check the cache
|
protected <T> void |
DefaultHttpKit.startHttpRequestAsync(HttpRequest request,
HttpResponseReceiver<T> receiver)
Starts the http request asynchronously in a new thread.
|
| Constructor and Description |
|---|
DefaultHttpKit.DefaultCacheRetriever(HttpRequest request,
HttpResponseReceiver<T> receiver) |
| Modifier and Type | Method and Description |
|---|---|
static void |
WLanDiskPreloader.preloadGet(android.content.Context c,
HttpKit httpKit,
HttpRequest r) |
static void |
DiskPreloader.preloadGet(HttpKit httpKit,
HttpRequest r)
Execute a HttpGET request
|
| Modifier and Type | Class and Description |
|---|---|
class |
AbstractHttpEntityRequest |
class |
AbstractHttpRequest
This is the abstract implementation for
HttpRequest. |
class |
HttpDeleteKeyValueRequest
This request executes an HTTP DELETE request with the data in the body
instead of the url like
HttpDeleteRequest will do. |
class |
HttpDeleteRequest
This
HttpRequest is used to execute a simple HTTP DELETE request with
some simple url encoded text parameters and corresponding values in the http
request body |
class |
HttpGetRequest
This
HttpRequest implementation is used to make a HTTP GET request. |
class |
HttpInputStreamEntityRequest |
class |
HttpKeyValueEntityRequest
This
HttpRequest is used to send http body entity in text from. |
class |
HttpPostKeyValueRequest
This
HttpRequest for sending a simple HTTP POST with URL Encoded text
http parameters. |
class |
HttpPutKeyValueRequest
This
HttpRequest is used to execute a simple HTTP PUT request with
some simple url encoded text parameters and corresponding values in the http
request body |
class |
HttpStringEntityRequest |
class |
HttpWithoutEntityRequest
An
HttpRequest that does not contain an http entity (http body). |
| Modifier and Type | Method and Description |
|---|---|
HttpRequest |
HttpRequest.setForceFromCache(boolean fromCache)
Set it to true, if you explicit want to retrieve the desired data from
cache, ignoring the cache control.
|
HttpRequest |
HttpRequest.setHttpMethod(String httpMethod)
Sets the http method, that is used by
HttpKit to execute this
request. |
HttpRequest |
HttpRequest.setOnOfflineFromCache(boolean offlineFromCache)
Set it to true, if you want try to get the data from the cache, if the
users device has currently no active internet connection
|
HttpRequest |
HttpRequest.setUrl(String url)
Set the url
|
HttpRequest |
HttpRequest.setWithoutCacheLookup(boolean withoutCache)
Set this to true, if you want explicit to execute this http request,
without quering the cache.
|
| Modifier and Type | Method and Description |
|---|---|
int |
AbstractHttpRequest.compareTo(HttpRequest other) |
void |
HttpRequest.CanceledListener.onHttpRequestCanceled(HttpRequest request)
This method will be called to inform, when an
HttpRequest has
been canceled |
void |
HttpRequest.PriorityChangedListener.onHttpRequestPriorityChanged(HttpRequest request,
int newPriority)
This method will be called, when an
HttpRequest has changed
his priority |
| Modifier and Type | Class and Description |
|---|---|
class |
HttpDeleteJsonRequest |
class |
HttpJsonRequest |
class |
HttpPostJsonRequest |
class |
HttpPutJsonRequest |
| Modifier and Type | Method and Description |
|---|---|
void |
HttpMultiResponseReceiver.onFailure(HttpRequest req,
Exception e)
Called if a Request has failed.
|
void |
HttpMultiRequest.onFailure(HttpRequest req,
Exception e) |
void |
HttpMultiRequest.start(HttpRequest... requests) |
| Modifier and Type | Method and Description |
|---|---|
void |
HttpMultiRequest.start(List<HttpRequest> requests)
Start
|
| Constructor and Description |
|---|
HttpMultiRequest(HttpKit httpKit,
HttpMultiResponseReceiver receiver,
HttpRequest... requests)
Creates a new
HttpMultiRequest with the given parameters and
starts it |
HttpMultiResponseWorker(HttpKit httpKit,
HttpRequest... requests) |
| Constructor and Description |
|---|
HttpMultiRequest(HttpKit httpKit,
HttpMultiResponseReceiver receiver,
List<HttpRequest> requests)
Creates a new
HttpMultiRequest with the given parameters and
starts it |
| Modifier and Type | Method and Description |
|---|---|
HttpRequest |
HttpResponse.getHttpRequest()
Get the
HttpRequest that has been processed to generate this
HttpResponse |
| Modifier and Type | Method and Description |
|---|---|
void |
HttpResponseReceiver.onFailure(HttpRequest req,
Exception e)
Called when the http request could not be executed successfully, because
an
Exception has occurred while sending the http request |
void |
HttpResponse.setHttpRequest(HttpRequest httpRequest) |
| Constructor and Description |
|---|
HttpResponse(HttpRequest request,
int httpStatusCode,
T parsedResult) |
| Modifier and Type | Method and Description |
|---|---|
HttpRequest |
HttpTask.getHttpRequest()
Get the
HttpRequest that is executed with this HttpTask |
HttpRequest |
HttpClientTask.getHttpRequest() |
HttpRequest |
CacheRetriever.getHttpRequest()
Get the
HttpRequest |
| Modifier and Type | Method and Description |
|---|---|
protected org.apache.http.client.methods.HttpUriRequest |
HttpClientTask.generateHttpUriRequest(HttpRequest request)
Generates a HTTP compatible
HttpUriRequest from an
HttpRequest |
void |
HttpClientTask.onHttpRequestCanceled(HttpRequest request) |
void |
HttpClientTask.onHttpRequestPriorityChanged(HttpRequest request,
int newPriority) |
| Constructor and Description |
|---|
HttpClientTask(HttpRequest request,
HttpResponseReceiver<T> responseReceiver,
org.apache.http.client.HttpClient httpClient,
Cache<String,Object> cache) |
Copyright © 2015 Hannes Dorfmann. All rights reserved.