HttpRequestImplpublic interface HttpRequest
This allows to provide alternative implementations for the http interaction of this library.
| Modifier and Type | Field | Description |
|---|---|---|
static int |
CONNECTION_ERROR |
|
static int |
PERMANENT_ERROR |
|
static int |
TEMPORARY_ERROR |
| Modifier and Type | Method | Description |
|---|---|---|
void |
cancelRequest() |
Cancels the request.
|
void |
executeRequest(HttpResponder httpRequest,
long nativePtr,
java.lang.String resourceUrl,
java.lang.String etag,
java.lang.String modified,
boolean offlineUsage) |
Executes the request.
|
static final int CONNECTION_ERROR
static final int TEMPORARY_ERROR
static final int PERMANENT_ERROR
void executeRequest(HttpResponder httpRequest, long nativePtr, java.lang.String resourceUrl, java.lang.String etag, java.lang.String modified, boolean offlineUsage)
httpRequest - callback to be invoked when we receive a responsenativePtr - the pointer associated to the requestresourceUrl - the resource url to downloadetag - http header, identifier for a specific version of a resourcemodified - http header, used to determine if a resource hasn't been modified sinceofflineUsage - flag to indicate a resource will be used for offline, appends offline=true as a query parametervoid cancelRequest()