public class CosMetadataResponseHandler extends AbstractCosResponseHandler<ObjectMetadata> implements HeaderHandler<ObjectMetadata>
| Constructor and Description |
|---|
CosMetadataResponseHandler() |
| Modifier and Type | Method and Description |
|---|---|
CosServiceResponse<ObjectMetadata> |
handle(CosHttpResponse response)
Accepts an HTTP response object, and returns an object of type T.
|
void |
handle(ObjectMetadata result,
CosHttpResponse response)
Applies one or more headers to the response object given.
|
needsConnectionLeftOpen, parseResponseMetadata, populateObjectMetadatapublic CosServiceResponse<ObjectMetadata> handle(CosHttpResponse response) throws Exception
HttpResponseHandlerhandle in interface HttpResponseHandler<CosServiceResponse<ObjectMetadata>>response - The HTTP response to handle, as received from an COS service.Exception - If any problems are encountered handling the response.public void handle(ObjectMetadata result, CosHttpResponse response)
HeaderHandlerhandle in interface HeaderHandler<ObjectMetadata>result - The response object to be returned to the client.response - The HTTP response from cos.Copyright © 2023. All rights reserved.