Interface UrlReadingContentTransformer
public interface UrlReadingContentTransformer
The part of a transformer that reads the config and url params and does the actual resource transformation and
generates the Source Map.
- Since:
- 3.3
-
Method Summary
Modifier and TypeMethodDescriptiontransform(CdnResourceUrlTransformer cdnResourceUrlTransformer, Content content, com.atlassian.plugin.elements.ResourceLocation location, QueryParams params, String sourceUrl) Transforms the downloadable resource by returning a new one.
-
Method Details
-
transform
Content transform(CdnResourceUrlTransformer cdnResourceUrlTransformer, Content content, com.atlassian.plugin.elements.ResourceLocation location, QueryParams params, String sourceUrl) Transforms the downloadable resource by returning a new one. This is invoked when the resource is being served.- Parameters:
cdnResourceUrlTransformer- transforms relative URLs into CDN URLscontent- content to transformlocation- resource detailsparams- query paramssourceUrl- url of source code for resource.- Returns:
- The new resource representing the transformed resource and the source map.
-