public void endS3Origin(String text) { // For streaming distribution origins if(this.originAccessIdentity != null && this.originAccessIdentity.length() == 0) { this.originAccessIdentity = null; } this.origin = new S3Origin(this.id, this.domainName, this.originAccessIdentity); returnControlToParentHandler(); }
@Override public String toString() { return "S3Origin: domainName=" + getDomainName() + (getOriginAccessIdentity() != null ? ", originAccessIdentity=" + getOriginAccessIdentity() : ""); }
/** * @return true if the distribution is private. * @deprecated as of 2012-05-05 API version. */ @Deprecated public boolean isPrivate() { return (this.getOrigin() instanceof S3Origin && ((S3Origin) this.getOrigin()).getOriginAccessIdentity() != null); }
/** * @return the origin bucket's name, without the suffix ".s3.amazonaws.com" */ public String getOriginAsBucketName() { String bucketName = getDomainName(); if(bucketName.endsWith(CloudFrontService.DEFAULT_BUCKET_SUFFIX)) { return bucketName.substring(0, bucketName.length() - CloudFrontService.DEFAULT_BUCKET_SUFFIX.length()); } else { return bucketName; } }
((S3Origin)distribution.getOrigin()).getOriginAsBucketName());
/** * @return true if the distribution is private. * @deprecated as of 2012-05-05 API version. */ @Deprecated public boolean isPrivate() { return (this.getOrigin() instanceof S3Origin && ((S3Origin) this.getOrigin()).getOriginAccessIdentity() != null); }
/** * @return the origin bucket's name, without the suffix ".s3.amazonaws.com" */ public String getOriginAsBucketName() { String bucketName = getDomainName(); if(bucketName.endsWith(CloudFrontService.DEFAULT_BUCKET_SUFFIX)) { return bucketName.substring(0, bucketName.length() - CloudFrontService.DEFAULT_BUCKET_SUFFIX.length()); } else { return bucketName; } }
((S3Origin)distribution.getOrigin()).getOriginAsBucketName());
@Override public String toString() { return "S3Origin: domainName=" + getDomainName() + (getOriginAccessIdentity() != null ? ", originAccessIdentity=" + getOriginAccessIdentity() : ""); }
public void endS3Origin(String text) { // For streaming distribution origins if(this.originAccessIdentity != null && this.originAccessIdentity.length() == 0) { this.originAccessIdentity = null; } this.origin = new S3Origin(this.id, this.domainName, this.originAccessIdentity); returnControlToParentHandler(); }
.e("S3OriginConfig") .e("OriginAccessIdentity"); if(o.getOriginAccessIdentity() != null) { oaiBuilder.t(o.getOriginAccessIdentity());
final S3Origin bucket = (S3Origin) config.getOrigins()[0]; final XMLBuilder origin = builder.e("S3Origin"); origin.e("DomainName").t(sanitizeS3BucketName(bucket.getDomainName())); origin.e("OriginAccessIdentity"); if(bucket.getOriginAccessIdentity() != null) { origin.t(bucket.getOriginAccessIdentity());
public void endS3OriginConfig(String text) { // For download distribution origins if(this.originAccessIdentity != null && this.originAccessIdentity.length() == 0) { this.originAccessIdentity = null; } this.origin = new S3Origin(this.id, this.domainName, this.originAccessIdentity); returnControlToParentHandler(); }
.e("S3OriginConfig") .e("OriginAccessIdentity"); if(o.getOriginAccessIdentity() != null) { oaiBuilder.t(o.getOriginAccessIdentity());
final S3Origin bucket = (S3Origin) config.getOrigins()[0]; final XMLBuilder origin = builder.e("S3Origin"); origin.e("DomainName").t(sanitizeS3BucketName(bucket.getDomainName())); origin.e("OriginAccessIdentity"); if(bucket.getOriginAccessIdentity() != null) { origin.t(bucket.getOriginAccessIdentity());
public void endS3OriginConfig(String text) { // For download distribution origins if(this.originAccessIdentity != null && this.originAccessIdentity.length() == 0) { this.originAccessIdentity = null; } this.origin = new S3Origin(this.id, this.domainName, this.originAccessIdentity); returnControlToParentHandler(); }
new S3Origin(bucketName), null, cnamesTableModel.getCnames(), commentTextArea.getText(), enabledCheckbox.isSelected(), loggingStatus,
new S3Origin(bucketName), null, cnamesTableModel.getCnames(), commentTextArea.getText(), enabledCheckbox.isSelected(), loggingStatus,
new S3Origin(originBucket), "" + System.currentTimeMillis(), // Caller reference - a unique string value new String[] {"test1.jamesmurty.com"}, // CNAME aliases for distribution new S3Origin(originBucket, originAccessIdentityId), "" + System.currentTimeMillis(), // Caller reference - a unique string value new String[] {}, // CNAME aliases for distribution new S3Origin(originBucket, originAccessIdentityId), new String[] {}, // CNAME aliases for distribution "Now a private distribution -- URL Signing required", // Comment new S3Origin(streamingBucket), "" + System.currentTimeMillis(), // Caller reference - a unique string value new S3Origin(streamingBucket, originAccessIdentityId), "" + System.currentTimeMillis(), // Caller reference - a unique string value new String[] {}, // CNAME aliases for distribution
new S3Origin(originBucket), "" + System.currentTimeMillis(), // Caller reference - a unique string value new String[] {"test1.jamesmurty.com"}, // CNAME aliases for distribution new S3Origin(originBucket, originAccessIdentityId), "" + System.currentTimeMillis(), // Caller reference - a unique string value new String[] {}, // CNAME aliases for distribution new S3Origin(originBucket, originAccessIdentityId), new String[] {}, // CNAME aliases for distribution "Now a private distribution -- URL Signing required", // Comment new S3Origin(streamingBucket), "" + System.currentTimeMillis(), // Caller reference - a unique string value new S3Origin(streamingBucket, originAccessIdentityId), "" + System.currentTimeMillis(), // Caller reference - a unique string value new String[] {}, // CNAME aliases for distribution