public class DefaultStaticTransformers extends Object implements StaticTransformers
StaticTransformers implementation.PARAMETERS_USED| Constructor and Description |
|---|
DefaultStaticTransformers(StaticTransformersSupplier staticTransformersSupplier) |
| Modifier and Type | Method and Description |
|---|---|
void |
addToUrl(String locationType,
TransformerParameters transformerParameters,
UrlBuilder urlBuilder,
UrlBuildingStrategy urlBuildingStrategy)
Contributes to the URL for all static transformers matching the given type
|
Dimensions |
computeDimensions()
Returns the
Dimensions of all registered transformers. |
Content |
transform(Content content,
TransformerParameters transformerParameters,
com.atlassian.plugin.elements.ResourceLocation resourceLocation,
String filePath,
QueryParams queryParams,
String sourceUrl)
Performs transformation for all static transformers for the given type.
|
public DefaultStaticTransformers(StaticTransformersSupplier staticTransformersSupplier)
public Dimensions computeDimensions()
StaticTransformersDimensions of all registered transformers.computeDimensions in interface StaticTransformerspublic void addToUrl(String locationType, TransformerParameters transformerParameters, UrlBuilder urlBuilder, UrlBuildingStrategy urlBuildingStrategy)
StaticTransformersaddToUrl in interface StaticTransformerslocationType - type of resource (eg js, css, less)transformerParameters - parameters to pass to transformersurlBuilder - url building to contribute topublic Content transform(Content content, TransformerParameters transformerParameters, com.atlassian.plugin.elements.ResourceLocation resourceLocation, String filePath, QueryParams queryParams, String sourceUrl)
StaticTransformerstransform in interface StaticTransformerscontent - content to transformtransformerParameters - the TransformerParameters objectresourceLocation - resource locationfilePath - file pathqueryParams - url querystring containing information for transformerssourceUrl - url of original source fileCopyright © 2017 Atlassian. All rights reserved.