public class JiraPrefixCDNStrategy extends Object implements com.atlassian.plugin.webresource.cdn.CDNStrategy
/my/resource.js will be
transformed to be served from //my.cdnhost.com/my.jirahost.com/my/resource.js
jira.fixed.cdn.enabled to true to enable
jira.fixed.cdn.disabled to true to override any enablement and disable the feature.)
jira.fixed.cdn.prefix to the cdn prefix, eg
//my.cdnhost.com/my.jira.com. This must not end with a trailing slash.
| Constructor and Description |
|---|
JiraPrefixCDNStrategy(Optional<com.atlassian.plugin.webresource.prebake.PrebakeConfig> prebakeConfig) |
| Modifier and Type | Method and Description |
|---|---|
Optional<com.atlassian.plugin.webresource.prebake.PrebakeConfig> |
getPrebakeConfig() |
boolean |
supportsCdn() |
String |
transformRelativeUrl(String s) |
public JiraPrefixCDNStrategy(Optional<com.atlassian.plugin.webresource.prebake.PrebakeConfig> prebakeConfig)
public boolean supportsCdn()
supportsCdn in interface com.atlassian.plugin.webresource.cdn.CDNStrategypublic String transformRelativeUrl(String s)
transformRelativeUrl in interface com.atlassian.plugin.webresource.cdn.CDNStrategypublic Optional<com.atlassian.plugin.webresource.prebake.PrebakeConfig> getPrebakeConfig()
getPrebakeConfig in interface com.atlassian.plugin.webresource.cdn.CDNStrategyCopyright © 2002-2017 Atlassian. All Rights Reserved.