use of com.qcloud.cos.internal.GetObjectTaggingResponseHeaderHandler in project cos-java-sdk-v5 by tencentyun.
the class COSClient method getObjectTagging.
@Override
public GetObjectTaggingResult getObjectTagging(GetObjectTaggingRequest getObjectTaggingRequest) {
rejectNull(getObjectTaggingRequest, "The request parameter must be specified when getting the object tags");
rejectNull(getObjectTaggingRequest.getBucketName(), "The request bucketName must be specified when getting the object tags");
rejectNull(getObjectTaggingRequest.getKey(), "The request key must be specified when getting the object tags");
CosHttpRequest<GetObjectTaggingRequest> request = createRequest(getObjectTaggingRequest.getBucketName(), getObjectTaggingRequest.getKey(), getObjectTaggingRequest, HttpMethodName.GET);
request.addParameter("tagging", null);
addParameterIfNotNull(request, "versionId", getObjectTaggingRequest.getVersionId());
ResponseHeaderHandlerChain<GetObjectTaggingResult> handlerChain = new ResponseHeaderHandlerChain<GetObjectTaggingResult>(new Unmarshallers.GetObjectTaggingResponseUnmarshaller(), new GetObjectTaggingResponseHeaderHandler());
return invoke(request, handlerChain);
}
Aggregations