public class NoOpCDNStrategy extends Object implements CDNStrategy
WebResourceIntegration.getCDNStrategy()
when there's no custom strategy and yet you want map URLs using WebResourceMapper.| Constructor and Description |
|---|
NoOpCDNStrategy(Optional<PrebakeConfig> prebakeConfig) |
| Modifier and Type | Method and Description |
|---|---|
Optional<PrebakeConfig> |
getPrebakeConfig()
Define how pre-baked resources in CT-CDN will be consumed by transforming local URLs according to a mapping file.
|
boolean |
supportsCdn() |
String |
transformRelativeUrl(String s)
Transforms the given URL to be served from the CDN.
|
public NoOpCDNStrategy(@Nonnull Optional<PrebakeConfig> prebakeConfig)
public boolean supportsCdn()
supportsCdn in interface CDNStrategypublic String transformRelativeUrl(String s)
CDNStrategytransformRelativeUrl in interface CDNStrategys - relative URL to transformedpublic Optional<PrebakeConfig> getPrebakeConfig()
CDNStrategyWebResourceIntegration.isCtCdnMappingEnabled() is "true" and cached "forever".
Runtime changes to the configuration will be ignored.getPrebakeConfig in interface CDNStrategyCopyright © 2017 Atlassian. All rights reserved.