Package com.trimblemaps.mapsdk.http
Interface HttpRequest
- All Known Implementing Classes:
HttpRequestImpl
public interface HttpRequest
Interface definition for performing http requests.
This allows to provide alternative implementations for the http interaction of this library.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final int -
Method Summary
Modifier and TypeMethodDescriptionvoidCancels the request.voidexecuteRequest(HttpResponder httpRequest, long nativePtr, String resourceUrl, String etag, String modified, boolean offlineUsage) Executes the request.
-
Field Details
-
CONNECTION_ERROR
static final int CONNECTION_ERROR- See Also:
-
TEMPORARY_ERROR
static final int TEMPORARY_ERROR- See Also:
-
PERMANENT_ERROR
static final int PERMANENT_ERROR- See Also:
-
-
Method Details
-
executeRequest
void executeRequest(HttpResponder httpRequest, long nativePtr, String resourceUrl, String etag, String modified, boolean offlineUsage) Executes the request.- Parameters:
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 parameter
-
cancelRequest
void cancelRequest()Cancels the request.
-