public class WebResourceTransformation extends Object
| Modifier and Type | Field and Description |
|---|---|
static Map<String,String[]> |
TRANSFORMER_PARAMETERS |
| Constructor and Description |
|---|
WebResourceTransformation(org.dom4j.Element element) |
WebResourceTransformation(TransformationDto transformationDto) |
| Modifier and Type | Method and Description |
|---|---|
void |
addTransformParameters(TransformerCache transformerCache,
TransformerParameters transformerParameters,
UrlBuilder urlBuilder,
UrlBuildingStrategy urlBuildingStrategy) |
static Map<String,String[]> |
buildTransformerParameters() |
Dimensions |
computeDimensions(TransformerCache transformerCache) |
boolean |
containsOnlyPureUrlReadingTransformers(TransformerCache transformerCache) |
Iterable<WebResourceTransformerModuleDescriptor> |
getDeprecatedTransformers(TransformerCache transformerCache) |
Map<String,String> |
leaveOnlyUsedParameters(TransformerCache transformerCache,
Map<String,String> params)
Filters the parameters and returns only those actually used by this set of transformers.
|
boolean |
matches(com.atlassian.plugin.elements.ResourceLocation location) |
boolean |
matches(String locationType) |
String |
toString() |
Content |
transform(CdnResourceUrlTransformer cdnResourceUrlTransformer,
TransformerCache transformerCache,
Resource resource,
Content content,
com.atlassian.plugin.elements.ResourceLocation resourceLocation,
String filePath,
QueryParams params,
String sourceUrl) |
public WebResourceTransformation(TransformationDto transformationDto)
public WebResourceTransformation(org.dom4j.Element element)
public boolean matches(com.atlassian.plugin.elements.ResourceLocation location)
public boolean matches(String locationType)
public void addTransformParameters(TransformerCache transformerCache, TransformerParameters transformerParameters, UrlBuilder urlBuilder, UrlBuildingStrategy urlBuildingStrategy)
public boolean containsOnlyPureUrlReadingTransformers(TransformerCache transformerCache)
public Iterable<WebResourceTransformerModuleDescriptor> getDeprecatedTransformers(TransformerCache transformerCache)
public Content transform(CdnResourceUrlTransformer cdnResourceUrlTransformer, TransformerCache transformerCache, Resource resource, Content content, com.atlassian.plugin.elements.ResourceLocation resourceLocation, String filePath, QueryParams params, String sourceUrl)
public Map<String,String> leaveOnlyUsedParameters(TransformerCache transformerCache, Map<String,String> params)
public Dimensions computeDimensions(TransformerCache transformerCache)
Copyright © 2017 Atlassian. All rights reserved.