use of uk.nhs.digital.externalstorage.s3.S3ObjectMetadata in project pravega by pravega.
the class S3ProxyImpl method putObject.
@Override
public PutObjectResult putObject(PutObjectRequest request) {
S3ObjectMetadata metadata = request.getObjectMetadata();
if (request.getObjectMetadata() != null) {
request.setObjectMetadata(null);
}
PutObjectResult retVal = client.putObject(request);
if (request.getAcl() != null) {
long size = 0;
if (request.getRange() != null) {
size = request.getRange().getLast() - 1;
}
aclMap.put(request.getKey(), new AclSize(request.getAcl(), size));
}
return retVal;
}
Aggregations