public class GetObjectResponse extends Response implements Closeable
| 构造器和说明 |
|---|
GetObjectResponse(Map<String,String> headers,
com.aliyun.openservices.log.http.comm.ResponseMessage response)
Construct the response with http headers, body InputStream, and ResponseMessage
|
| 限定符和类型 | 方法和说明 |
|---|---|
void |
close()
Closes the InputStream.
|
InputStream |
getContent()
Get the object content as InputStream.
|
ObjectMetadata |
getObjectMetadata()
Get the object metadata.
|
com.aliyun.openservices.log.http.comm.ResponseMessage |
getResponse()
Get the underlying ResponseMessage.
|
void |
setResponse(com.aliyun.openservices.log.http.comm.ResponseMessage response)
Set the underlying ResponseMessage.
|
GetAllHeaders, GetHeader, GetRequestIdpublic GetObjectResponse(Map<String,String> headers, com.aliyun.openservices.log.http.comm.ResponseMessage response)
headers - http headersresponse - the ResponseMessage (will not be closed automatically)public ObjectMetadata getObjectMetadata()
public InputStream getContent()
public com.aliyun.openservices.log.http.comm.ResponseMessage getResponse()
public void setResponse(com.aliyun.openservices.log.http.comm.ResponseMessage response)
response - the ResponseMessagepublic void close()
throws IOException
close 在接口中 Closeableclose 在接口中 AutoCloseableIOException - if an I/O error occursCopyright © 2026. All Rights Reserved.