com.atlassian.jira.plugin.webresource
Class JiraPrefixCDNStrategy
java.lang.Object
com.atlassian.jira.plugin.webresource.JiraPrefixCDNStrategy
- All Implemented Interfaces:
- com.atlassian.plugin.webresource.cdn.CDNStrategy
public class JiraPrefixCDNStrategy
- extends Object
- implements com.atlassian.plugin.webresource.cdn.CDNStrategy
CDN Strategy for JIRA that takes a static prefix. This will transform cdn-able resources to be served from
a single host, with the app's hostname as the first section of the url. For example, /my/resource.js
will be
transformed to be served from //my.cdnhost.com/my.jirahost.com/my/resource.js
-
Set the dark feature
jira.fixed.cdn.enabled
to true to enable
-
(Set the dark feature
jira.fixed.cdn.disabled
to true to override any enablement and disable the feature.)
-
Set the system propery
jira.fixed.cdn.prefix
to the cdn prefix, eg
//my.cdnhost.com/my.jira.com
. This must not end with a trailing slash.
- Since:
- v7.0
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JiraPrefixCDNStrategy
public JiraPrefixCDNStrategy()
supportsCdn
public boolean supportsCdn()
- Specified by:
supportsCdn
in interface com.atlassian.plugin.webresource.cdn.CDNStrategy
transformRelativeUrl
public String transformRelativeUrl(String s)
- Specified by:
transformRelativeUrl
in interface com.atlassian.plugin.webresource.cdn.CDNStrategy
Copyright © 2002-2014 Atlassian. All Rights Reserved.