CEPH s3 java sdk PUT对象并在同一个PUT请求中同时设置ACL为 Public
java:
http://docs.aws.amazon.com/zh_cn/AmazonS3/latest/dev/acl-using-java-sdk.html
tring bucketName = "bucket-name"; AmazonS3 s3client = new AmazonS3Client(new ProfileCredentialsProvider()); s3client.createBucket(new CreateBucketRequest (bucketName).withCannedAcl(CannedAccessControlList.PublicRead));
AccessControlList acl = new AccessControlList();
acl.grantPermission(GroupGrantee.AllUsers, Permission.Read);
s3.putObject(new PutObjectRequest(bucketName, key, createSampleFile()).withAccessControlList(acl));