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 Summary
-
Method Details
-
getReference
Reference getReference()- Returns:
- URI of the resource.
-
sendHEADRequest
- Returns:
- Response. In particular, the
statusis set, and Accept-Ranges and Content-Lengthheadersare included if the server sent them. - Throws:
IOException- upon failure to receive a valid response (not a response with an error status code).
-
sendGETRequest
- Parameters:
range- Byte range to request.- Returns:
- Same as
sendHEADRequest(), but thebodyis also included. - Throws:
IOException- upon failure to receive a valid response (not a response with an error status code).
-