use of com.pspace.ifs.ksan.objmanager.Metadata in project ksan by infinistor.
the class S3Request method createCopy.
protected Metadata createCopy(String srcBucket, String srcObjectName, String srcVersionId, String bucket, String object) throws GWException {
Metadata objMeta;
try {
setObjManager();
objMeta = objManager.createCopy(srcBucket, srcObjectName, srcVersionId, bucket, object);
} catch (Exception e) {
PrintStack.logging(logger, e);
throw new GWException(GWErrorCode.SERVER_ERROR, s3Parameter);
} finally {
try {
releaseObjManager();
} catch (Exception e) {
PrintStack.logging(logger, e);
throw new GWException(GWErrorCode.SERVER_ERROR, s3Parameter);
}
}
return objMeta;
}
Aggregations