Class QDrantBinaryResponseImpl
java.lang.Object
io.metaloom.qdrant.client.http.impl.QDrantBinaryResponseImpl
- All Implemented Interfaces:
RestResponse,QDrantBinaryResponse,AutoCloseable
-
Field Summary
FieldsFields inherited from interface io.metaloom.qdrant.client.http.QDrantBinaryResponse
FLOWABLE_BUFFER_SIZE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Closes the response body handler.intcode()Return the HTTP status code for the response.Retrieve the content type of the binaryRetrieve the filename of this binaryRetrieve a blocking input stream of the response body.booleanCheck whether the request was successful.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.metaloom.qdrant.client.http.QDrantBinaryResponse
getFlowable
-
Field Details
-
FILENAME_DISPOSITION_ATTR
- See Also:
-
-
Constructor Details
-
QDrantBinaryResponseImpl
public QDrantBinaryResponseImpl(okhttp3.Response response)
-
-
Method Details
-
getStream
Description copied from interface:QDrantBinaryResponseRetrieve a blocking input stream of the response body. This object must be closed via #close after the stream has been read.- Specified by:
getStreamin interfaceQDrantBinaryResponse- Returns:
-
getFilename
Description copied from interface:QDrantBinaryResponseRetrieve the filename of this binary- Specified by:
getFilenamein interfaceQDrantBinaryResponse- Returns:
-
getContentType
Description copied from interface:QDrantBinaryResponseRetrieve the content type of the binary- Specified by:
getContentTypein interfaceQDrantBinaryResponse- Returns:
-
close
public void close()Description copied from interface:QDrantBinaryResponseCloses the response body handler.- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceQDrantBinaryResponse
-
isSuccessful
public boolean isSuccessful()Description copied from interface:QDrantBinaryResponseCheck whether the request was successful.- Specified by:
isSuccessfulin interfaceQDrantBinaryResponse- Returns:
-
code
public int code()Description copied from interface:QDrantBinaryResponseReturn the HTTP status code for the response.- Specified by:
codein interfaceQDrantBinaryResponse- Returns:
-