use of com.pspace.ifs.ksan.objmanager.Bucket in project ksan by infinistor.
the class S3Request method getBucket.
protected Bucket getBucket(String bucket) throws GWException {
Bucket bucketInfo = null;
try {
setObjManager();
bucketInfo = objManager.getBucket(bucket);
} catch (ResourceNotFoundException e) {
return null;
} 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 bucketInfo;
}
Aggregations