public class HttpRequestImpl extends Object implements HttpRequest
CONNECTION_ERROR, PERMANENT_ERROR, TEMPORARY_ERROR
Constructor and Description |
---|
HttpRequestImpl() |
Modifier and Type | Method and Description |
---|---|
void |
cancelRequest()
Cancels the request.
|
static void |
enableLog(boolean enabled) |
static void |
enablePrintRequestUrlOnFailure(boolean enabled) |
void |
executeRequest(HttpResponder httpRequest,
long nativePtr,
String resourceUrl,
String etag,
String modified)
Executes the request.
|
static void |
setOkHttpClient(OkHttpClient okHttpClient) |
public void executeRequest(HttpResponder httpRequest, long nativePtr, String resourceUrl, String etag, String modified)
HttpRequest
executeRequest
in interface HttpRequest
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 sincepublic void cancelRequest()
HttpRequest
cancelRequest
in interface HttpRequest
public static void enablePrintRequestUrlOnFailure(boolean enabled)
public static void enableLog(boolean enabled)
public static void setOkHttpClient(OkHttpClient okHttpClient)
© 2015–2019 Mapbox. All rights reserved.