public interface HttpRequest
This allows to provide alternative implementations for the http interaction of this library.
| Modifier and Type | Field and Description |
|---|---|
static int |
CONNECTION_ERROR |
static int |
PERMANENT_ERROR |
static int |
TEMPORARY_ERROR |
| Modifier and Type | Method and Description |
|---|---|
void |
cancelRequest()
Cancels the request.
|
void |
executeRequest(HttpResponder httpRequest,
long nativePtr,
java.lang.String resourceUrl,
java.lang.String etag,
java.lang.String modified)
Executes the request.
|
void |
sendUserID(java.lang.String resourceUrl,
java.lang.String userID) |
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)
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 sincevoid cancelRequest()
void sendUserID(java.lang.String resourceUrl,
java.lang.String userID)