Package io.pdfapi.client.http
Class StreamingHttpResponse
java.lang.Object
io.pdfapi.client.http.StreamingHttpResponse
- All Implemented Interfaces:
HttpResponse,AutoCloseable
-
Constructor Summary
ConstructorsConstructorDescriptionStreamingHttpResponse(int statusCode, InputStream bodyStream, AutoCloseable responseToClose, Map<String, List<String>> headers) -
Method Summary
-
Constructor Details
-
StreamingHttpResponse
public StreamingHttpResponse(int statusCode, InputStream bodyStream, AutoCloseable responseToClose, Map<String, List<String>> headers)
-
-
Method Details
-
getStatusCode
public int getStatusCode()- Specified by:
getStatusCodein interfaceHttpResponse
-
getBodyAsStream
- Specified by:
getBodyAsStreamin interfaceHttpResponse
-
getLocationHeader
- Specified by:
getLocationHeaderin interfaceHttpResponse
-
close
public void close()- Specified by:
closein interfaceAutoCloseable
-