| Modifier and Type | Method and Description |
|---|---|
Content |
WebResourceTransformation.transform(CdnResourceUrlTransformer cdnResourceUrlTransformer,
TransformerCache transformerCache,
Resource resource,
Content content,
com.atlassian.plugin.elements.ResourceLocation resourceLocation,
String filePath,
QueryParams params,
String sourceUrl) |
| Modifier and Type | Method and Description |
|---|---|
Content |
WebResourceTransformation.transform(CdnResourceUrlTransformer cdnResourceUrlTransformer,
TransformerCache transformerCache,
Resource resource,
Content content,
com.atlassian.plugin.elements.ResourceLocation resourceLocation,
String filePath,
QueryParams params,
String sourceUrl) |
| Modifier and Type | Method and Description |
|---|---|
protected static Content |
ResourceServingHelpers.applyStaticTransformers(Globals globals,
Resource resource,
Content content,
Map<String,String> params,
String sourceUrl)
Apply Static Transformers to Resource.
|
protected static Content |
ResourceServingHelpers.applyTransformers(Globals globals,
Resource resource,
Content content,
Map<String,String> params,
String sourceUrl)
Apply Transformers to Resource.
|
static Content |
ResourceServingHelpers.asContent(com.atlassian.plugin.servlet.DownloadableResource downloadableResource,
com.atlassian.sourcemap.SourceMap sourceMap,
boolean isTransformed)
Adapter, turns DownloadableResource into Content.
|
static Content |
ResourceServingHelpers.buildEmptyContent(String contentType) |
static Content |
ResourceServingHelpers.buildSafeContent(Content content,
String fullResourceName)
Intercept any exception and ignores it.
|
static Content |
ResourceServingHelpers.transform(Globals globals,
LinkedHashSet<String> requiredResources,
String url,
Resource resource,
Map<String,String> params,
boolean applyAnnotators)
Transform given Resource by applying Transformers and Static Transformers.
|
static Content |
ResourceServingHelpers.transform(Globals globals,
LinkedHashSet<String> requiredResources,
String url,
String type,
com.google.common.base.Supplier<Collection<Resource>> resources,
Map<String,String> params)
Apply conditions and transformations to list of Resources and generate resulting Batch.
|
static Content |
ResourceServingHelpers.transformSafely(Globals globals,
LinkedHashSet<String> requiredResources,
String url,
Resource resource,
Map<String,String> params,
boolean applyAnnotators)
Transform given Resource by applying Transformers and Static Transformers.
|
static Content |
ResourceServingHelpers.transformWithoutCache(Globals globals,
LinkedHashSet<String> requiredResources,
String url,
Resource resource,
Map<String,String> params,
boolean applyAnnotators)
Transform given Resource by applying Transformers and Static Transformers.
|
| Modifier and Type | Method and Description |
|---|---|
protected static Content |
ResourceServingHelpers.applyStaticTransformers(Globals globals,
Resource resource,
Content content,
Map<String,String> params,
String sourceUrl)
Apply Static Transformers to Resource.
|
protected static Content |
ResourceServingHelpers.applyTransformers(Globals globals,
Resource resource,
Content content,
Map<String,String> params,
String sourceUrl)
Apply Transformers to Resource.
|
static com.atlassian.plugin.servlet.DownloadableResource |
ResourceServingHelpers.asDownloadableResource(Content content)
Adapter, turns Content into DownloadableResource.
|
static Content |
ResourceServingHelpers.buildSafeContent(Content content,
String fullResourceName)
Intercept any exception and ignores it.
|
static String |
ResourceServingHelpers.toString(Content content) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
Controller.sendCached(Content content,
boolean isCachingEnabled) |
protected void |
Controller.sendCachedInDevelopment(Content content,
boolean isCachingEnabled) |
protected void |
Controller.sendCachedInProduction(Content content,
boolean isCachingEnabled) |
| Modifier and Type | Method and Description |
|---|---|
Content |
Resource.getContent() |
Content |
ContextResource.getContent() |
| Modifier and Type | Class and Description |
|---|---|
class |
ContentImpl
Helper to simplify implementation of Content class.
|
| Modifier and Type | Method and Description |
|---|---|
static Content |
MinificationTransformer.minify(Config config,
Resource resource,
Content content,
String sourceUrl) |
Content |
UrlReadingContentTransformer.transform(CdnResourceUrlTransformer cdnResourceUrlTransformer,
Content content,
com.atlassian.plugin.elements.ResourceLocation location,
QueryParams params,
String sourceUrl)
Transforms the downloadable resource by returning a new one.
|
Content |
StaticTransformers.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.
|
Content |
DefaultStaticTransformers.transform(Content content,
TransformerParameters transformerParameters,
com.atlassian.plugin.elements.ResourceLocation resourceLocation,
String filePath,
QueryParams queryParams,
String sourceUrl) |
| Modifier and Type | Method and Description |
|---|---|
static Content |
MinificationTransformer.minify(Config config,
Resource resource,
Content content,
String sourceUrl) |
Content |
UrlReadingContentTransformer.transform(CdnResourceUrlTransformer cdnResourceUrlTransformer,
Content content,
com.atlassian.plugin.elements.ResourceLocation location,
QueryParams params,
String sourceUrl)
Transforms the downloadable resource by returning a new one.
|
Content |
StaticTransformers.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.
|
Content |
DefaultStaticTransformers.transform(Content content,
TransformerParameters transformerParameters,
com.atlassian.plugin.elements.ResourceLocation resourceLocation,
String filePath,
QueryParams queryParams,
String sourceUrl) |
Copyright © 2017 Atlassian. All rights reserved.