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 Type
    Method
    Description
    transform(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 URLs
      content - content to transform
      location - resource details
      params - query params
      sourceUrl - url of source code for resource.
      Returns:
      The new resource representing the transformed resource and the source map.