com.atlassian.jira.plugin.webresource
Class JiraPrefixCDNStrategy

java.lang.Object
  extended by 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

Since:
v7.0

Constructor Summary
JiraPrefixCDNStrategy()
           
 
Method Summary
 boolean supportsCdn()
           
 String transformRelativeUrl(String s)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JiraPrefixCDNStrategy

public JiraPrefixCDNStrategy()
Method Detail

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.