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, populateObjectMetadata
public CosServiceResponse<ObjectMetadata> handle(CosHttpResponse response) throws Exception
HttpResponseHandler
handle
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)
HeaderHandler
handle
in interface HeaderHandler<ObjectMetadata>
result
- The response object to be returned to the client.response
- The HTTP response from cos.Copyright © 2024. All rights reserved.