Package org.duracloud.s3storage
Class S3ProviderUtil
java.lang.Object
org.duracloud.s3storage.S3ProviderUtil
-
Method Summary
Modifier and TypeMethodDescriptionstatic StringcreateNewBucketName(String accessKeyId, String spaceId) Converts a provided space ID into a valid and unique S3 bucket name.static com.amazonaws.services.cloudfront.AmazonCloudFrontClientgetAmazonCloudFrontClient(String accessKey, String secretKey) static com.amazonaws.services.s3.AmazonS3static org.springframework.core.io.ResourcegetS3ObjectByUrl(String s3Url)
-
Method Details
-
getAmazonS3Client
-
getAmazonCloudFrontClient
-
createNewBucketName
Converts a provided space ID into a valid and unique S3 bucket name.- Parameters:
spaceId-- Returns:
-
getS3ObjectByUrl
public static org.springframework.core.io.Resource getS3ObjectByUrl(String s3Url) throws IOException - Parameters:
s3Url- using the s3://bucket/object syntax.- Returns:
- Throws:
IOException
-