public class CloudFrontUtils extends Object
Constructor and Description |
---|
CloudFrontUtils() |
Modifier and Type | Method and Description |
---|---|
static com.amazonaws.services.s3.model.CopyObjectRequest |
getCopyObjectRequest(String bucket,
String src,
String dst)
Create a CopyObjectRequest with an ACL set to PublicRead
|
static String |
getFirstMatchingKey(com.amazonaws.services.s3.model.ObjectListing listing,
List<String> filenames)
An
ObjectListing is the equivalent of typing ls in a directory on a file system. |
static String |
getFirstMatchingKey(String objectKey,
String prefix,
List<String> filenames) |
static com.amazonaws.services.s3.model.PutObjectRequest |
getPutHtmlRequest(BucketContext context,
String cacheControl,
com.amazonaws.services.s3.model.ObjectListing listing,
String html) |
static com.amazonaws.services.s3.model.PutObjectRequest |
getPutHtmlRequest(String bucket,
String cacheControl,
String html,
String key)
Create a PutObjectRequest from the html.
|
static com.amazonaws.services.s3.model.PutObjectRequest |
getPutHtmlRequestWithoutTrailingDelimiter(BucketContext context,
String cacheControl,
com.amazonaws.services.s3.model.ObjectListing listing,
String html) |
static SimpleDateFormat |
getSimpleDateFormat(String format,
String timezone)
Return a date formatter for the indicated format and timezone.
|
static TypedRequest |
getTypedRequest(String bucket,
String cacheControl,
String welcomeFileKey,
com.amazonaws.services.s3.model.ObjectListing listing,
String html)
This does one of two things.
|
static TypedRequest |
getTypedRequestWithoutTrailingDelimiter(BucketContext context,
String cacheControl,
com.amazonaws.services.s3.model.ObjectListing listing,
String html) |
public CloudFrontUtils()
public static SimpleDateFormat getSimpleDateFormat(String format, String timezone)
public static String getFirstMatchingKey(com.amazonaws.services.s3.model.ObjectListing listing, List<String> filenames)
ObjectListing
is the equivalent of typing ls
in a directory on a file system.public static String getFirstMatchingKey(String objectKey, String prefix, List<String> filenames)
public static com.amazonaws.services.s3.model.CopyObjectRequest getCopyObjectRequest(String bucket, String src, String dst)
public static com.amazonaws.services.s3.model.PutObjectRequest getPutHtmlRequest(String bucket, String cacheControl, String html, String key)
text/html
, sets the ACL to PublicRead
, and adds the metadata
maven-cloudfront-plugin-index=true
public static TypedRequest getTypedRequestWithoutTrailingDelimiter(BucketContext context, String cacheControl, com.amazonaws.services.s3.model.ObjectListing listing, String html)
public static TypedRequest getTypedRequest(String bucket, String cacheControl, String welcomeFileKey, com.amazonaws.services.s3.model.ObjectListing listing, String html)
/foo/bar/index.html to /foo/bar/
OR creates /foo/bar/
from html
public static com.amazonaws.services.s3.model.PutObjectRequest getPutHtmlRequestWithoutTrailingDelimiter(BucketContext context, String cacheControl, com.amazonaws.services.s3.model.ObjectListing listing, String html)
public static com.amazonaws.services.s3.model.PutObjectRequest getPutHtmlRequest(BucketContext context, String cacheControl, com.amazonaws.services.s3.model.ObjectListing listing, String html)
Copyright © 2004–2014 The Kuali Foundation. All rights reserved.