Interface HTTPImageInputStreamClient


public interface HTTPImageInputStreamClient
Adapts an HTTP client to work with HTTPImageInputStream. The client should be initialized to the URI of the resource that the stream is supposed to access.
  • Method Details

    • getReference

      Reference getReference()
      Returns:
      URI of the resource.
    • sendHEADRequest

      Response sendHEADRequest() throws IOException
      Returns:
      Response. In particular, the status is set, and Accept-Ranges and Content-Length headers are included if the server sent them.
      Throws:
      IOException - upon failure to receive a valid response (not a response with an error status code).
    • sendGETRequest

      Response sendGETRequest(Range range) throws IOException
      Parameters:
      range - Byte range to request.
      Returns:
      Same as sendHEADRequest(), but the body is also included.
      Throws:
      IOException - upon failure to receive a valid response (not a response with an error status code).