/** * @deprecated as of 2012-05-05 API version, instead use {@link #getDefaultCacheBehavior()} */ @Deprecated public void setMinTTL(Long minTTL) { this.getDefaultCacheBehavior().setMinTTL(minTTL); }
/** * @deprecated as of 2012-05-05 API version, instead use {@link #getDefaultCacheBehavior()} */ @Deprecated public Long getMinTTL() { return this.getDefaultCacheBehavior().getMinTTL(); }
/** * @deprecated as of 2012-05-05 API version, instead use {@link #getDefaultCacheBehavior()} */ @Deprecated public String[] getRequiredProtocols() { if(this.getDefaultCacheBehavior().getViewerProtocolPolicy() == ViewerProtocolPolicy.HTTPS_ONLY) { return new String[]{"https"}; } else { return null; } }
/** * @deprecated as of 2012-05-05 API version, instead use {@link #getDefaultCacheBehavior()} */ @Deprecated public void setMinTTL(Long minTTL) { this.getDefaultCacheBehavior().setMinTTL(minTTL); }
/** * @deprecated as of 2012-05-05 API version, instead use {@link #getDefaultCacheBehavior()} */ @Deprecated public String[] getTrustedSignerAwsAccountNumbers() { return this.getDefaultCacheBehavior().getTrustedSignerAwsAccountNumbers(); }
/** * @deprecated as of 2012-05-05 API version, instead use {@link #getDefaultCacheBehavior()} */ @Deprecated public boolean isTrustedSignerSelf() { return this.getDefaultCacheBehavior().isTrustedSignerSelf(); }
/** * @deprecated as of 2012-05-05 API version, instead use {@link #getDefaultCacheBehavior()} */ @Deprecated public Long getMinTTL() { return this.getDefaultCacheBehavior().getMinTTL(); }
/** * @deprecated as of 2012-05-05 API version, instead use {@link #getDefaultCacheBehavior()} */ @Deprecated public boolean hasMinTTL() { return this.getDefaultCacheBehavior().hasMinTTL(); }
/** * @deprecated as of 2012-05-05 API version, instead use {@link #getDefaultCacheBehavior()} */ @Deprecated public boolean isTrustedSignerSelf() { return this.getDefaultCacheBehavior().isTrustedSignerSelf(); }
/** * @deprecated as of 2012-05-05 API version, instead use {@link #getDefaultCacheBehavior()} */ @Deprecated public String[] getTrustedSignerAwsAccountNumbers() { return this.getDefaultCacheBehavior().getTrustedSignerAwsAccountNumbers(); }
/** * @deprecated as of 2012-05-05 API version, instead use {@link #getDefaultCacheBehavior()} */ @Deprecated public String[] getRequiredProtocols() { if(this.getDefaultCacheBehavior().getViewerProtocolPolicy() == ViewerProtocolPolicy.HTTPS_ONLY) { return new String[]{"https"}; } else { return null; } }
/** * @deprecated as of 2012-05-05 API version, instead use {@link #getDefaultCacheBehavior()} */ @Deprecated public boolean hasMinTTL() { return this.getDefaultCacheBehavior().hasMinTTL(); }
/** * @deprecated as of 2012-05-05 API version, instead use {@link #getDefaultCacheBehavior()} */ @Deprecated public void setRequiredProtocols(String[] protocols) { // Convert pre 2012-05-05 version requiredProtocol into default cache behavior setting if(protocols != null && protocols.length > 0) { if(protocols.length > 1 || !"https".equals(protocols[0])) { throw new IllegalArgumentException( "if set, the requiredProtocols argument may contain only a single string" + " value \"https\""); } // If a required protocol is set, and is set correctly, it must be HTTPS_ONLY this.getDefaultCacheBehavior().setViewerProtocolPolicy(ViewerProtocolPolicy.HTTPS_ONLY); } else { this.getDefaultCacheBehavior().setViewerProtocolPolicy(ViewerProtocolPolicy.ALLOW_ALL); } }
/** * @deprecated as of 2012-05-05 API version, instead use {@link #getDefaultCacheBehavior()} */ @Deprecated public void setRequiredProtocols(String[] protocols) { // Convert pre 2012-05-05 version requiredProtocol into default cache behavior setting if(protocols != null && protocols.length > 0) { if(protocols.length > 1 || !"https".equals(protocols[0])) { throw new IllegalArgumentException( "if set, the requiredProtocols argument may contain only a single string" + " value \"https\""); } // If a required protocol is set, and is set correctly, it must be HTTPS_ONLY this.getDefaultCacheBehavior().setViewerProtocolPolicy(ViewerProtocolPolicy.HTTPS_ONLY); } else { this.getDefaultCacheBehavior().setViewerProtocolPolicy(ViewerProtocolPolicy.ALLOW_ALL); } }
Collections.addAll(myTrustedSignerAwsAccountNumber, trustedSignerAwsAccountNumbers); this.getDefaultCacheBehavior().setTrustedSignerAwsAccountNumbers( myTrustedSignerAwsAccountNumber.toArray(new String[myTrustedSignerAwsAccountNumber.size()])); this.setRequiredProtocols(requiredProtocols); this.getDefaultCacheBehavior().setMinTTL(minTTL);
Collections.addAll(myTrustedSignerAwsAccountNumber, trustedSignerAwsAccountNumbers); this.getDefaultCacheBehavior().setTrustedSignerAwsAccountNumbers( myTrustedSignerAwsAccountNumber.toArray(new String[myTrustedSignerAwsAccountNumber.size()])); this.setRequiredProtocols(requiredProtocols); this.getDefaultCacheBehavior().setMinTTL(minTTL);
builder.importXMLBuilder(buildDefaultCacheBehavior(config.getDefaultCacheBehavior())); builder.importXMLBuilder(buildCacheBehaviors(config.getCacheBehaviors()));
builder.importXMLBuilder(buildDefaultCacheBehavior(config.getDefaultCacheBehavior())); builder.importXMLBuilder(buildCacheBehaviors(config.getCacheBehaviors()));