public interface StaticTransformers
| Modifier and Type | Field and Description |
|---|---|
static String[] |
PARAMETERS_USED |
| 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 |
computeBundleDimensions(Bundle bundle) |
Dimensions |
computeDimensions()
Returns the
Dimensions of all registered transformers. |
Set<String> |
getParamKeys()
Get list of param keys used by this 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.
|
static final String[] PARAMETERS_USED
Dimensions computeDimensions()
Dimensions of all registered transformers.Dimensions computeBundleDimensions(Bundle bundle)
bundle - for which you want to get dimensions.Dimensions related to given bundle.void addToUrl(String locationType, TransformerParameters transformerParameters, UrlBuilder urlBuilder, UrlBuildingStrategy urlBuildingStrategy)
locationType - type of resource (eg js, css, less)transformerParameters - parameters to pass to transformersurlBuilder - url building to contribute toContent transform(Content content, TransformerParameters transformerParameters, com.atlassian.plugin.elements.ResourceLocation resourceLocation, String filePath, QueryParams queryParams, String sourceUrl)
content - content to transformtransformerParameters - the TransformerParameters objectresourceLocation - resource locationfilePath - file pathqueryParams - url querystring containing information for transformerssourceUrl - url of original source fileCopyright © 2018 Atlassian. All rights reserved.