Interface CDNStrategy
public interface CDNStrategy
Interface for CDN strategies. CDN strategies take a URL and transform it to another URL.
- Since:
- v3.0.5
-
Method Summary
Modifier and TypeMethodDescriptiondefault StringbooleanTransforms the given URL to be served from the CDN.
-
Method Details
-
supportsCdn
boolean supportsCdn()- Returns:
- true if a CDN is supported
-
transformRelativeUrl
Transforms the given URL to be served from the CDN. The given URL is assumed to be relative to the current host.- Parameters:
url- relative URL to transformed- Returns:
- the URL to a CDN version of the given URL.
-
encodeConfigurationState
- Returns:
- the encoded part of configuration relevant to the creation of URLs pointing to resources stored on CDN. Typically just the CDN URL.
-