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 Details

  • 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 response
      nativePtr - the pointer associated to the request
      resourceUrl - the resource url to download
      etag - http header, identifier for a specific version of a resource
      modified - http header, used to determine if a resource hasn't been modified since
      offlineUsage - flag to indicate a resource will be used for offline, appends offline=true as a query parameter
    • cancelRequest

      void cancelRequest()
      Cancels the request.