| 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) |
| Constructor and Description |
|---|
ResourceUrlImpl(Globals globals,
Resource resource,
Map<String,String> params,
String hash,
boolean hasLegacyTransformer,
List<PrebakeError> prebakeErrors) |
| Modifier and Type | Field and Description |
|---|---|
protected Map<RequestCache.ResourceKeysSupplier,List<Resource>> |
RequestCache.cachedResourceLists |
protected Map<Bundle,LinkedHashMap<String,Resource>> |
RequestCache.cachedResources |
| Modifier and Type | Method and Description |
|---|---|
Map<Bundle,LinkedHashMap<String,Resource>> |
RequestCache.getCachedResources()
Needed by WebResource as a storage for Cache.
|
List<Resource> |
RequestCache.getCachedResources(RequestCache.ResourceKeysSupplier resourceKeysSupplier)
Batches and Sub Batches are cached and as such can't contain references to Resources, this cache helps
with that.
|
| Modifier and Type | Method and Description |
|---|---|
static List<RequestCache.ResourceKey> |
RequestCache.toResourceKeys(List<Resource> resources) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
ModuleAnnotator.after(LinkedHashSet<String> requiredResources,
Resource resource,
OutputStream stream) |
void |
ResourceContentAnnotator.afterResource(LinkedHashSet<String> requiredResources,
String url,
Resource resource,
OutputStream stream)
Called after the resource content is written.
|
void |
ListOfAnnotators.afterResource(LinkedHashSet<String> requiredResources,
String url,
Resource resource,
OutputStream stream) |
void |
ModuleAnnotator.afterResource(LinkedHashSet<String> requiredResources,
String url,
Resource resource,
OutputStream stream) |
void |
TryCatchJsResourceContentAnnotator.afterResourceInBatch(LinkedHashSet<String> requiredResources,
Resource resource,
OutputStream stream) |
void |
ResourceContentAnnotator.afterResourceInBatch(LinkedHashSet<String> requiredResources,
Resource resource,
OutputStream stream)
Called after the resource content is written in batch.
|
void |
SemicolonResourceContentAnnotator.afterResourceInBatch(LinkedHashSet<String> requiredResources,
Resource resource,
OutputStream stream) |
void |
ListOfAnnotators.afterResourceInBatch(LinkedHashSet<String> requiredResources,
Resource resource,
OutputStream stream) |
void |
ModuleAnnotator.afterResourceInBatch(LinkedHashSet<String> requiredResources,
Resource resource,
OutputStream stream) |
protected int |
ModuleAnnotator.before(LinkedHashSet<String> requiredResources,
Resource resource,
OutputStream stream) |
int |
ResourceContentAnnotator.beforeResource(LinkedHashSet<String> requiredResources,
String url,
Resource resource,
OutputStream stream)
Called before the resource content is written.
|
int |
ListOfAnnotators.beforeResource(LinkedHashSet<String> requiredResources,
String url,
Resource resource,
OutputStream stream) |
int |
ModuleAnnotator.beforeResource(LinkedHashSet<String> requiredResources,
String url,
Resource resource,
OutputStream stream) |
int |
LocationContentAnnotator.beforeResourceInBatch(LinkedHashSet<String> requiredResources,
Resource resource,
OutputStream out) |
int |
TryCatchJsResourceContentAnnotator.beforeResourceInBatch(LinkedHashSet<String> requiredResources,
Resource resource,
OutputStream stream) |
int |
ResourceContentAnnotator.beforeResourceInBatch(LinkedHashSet<String> requiredResources,
Resource resource,
OutputStream stream)
Called before the resource content is written in batch.
|
int |
SemicolonResourceContentAnnotator.beforeResourceInBatch(LinkedHashSet<String> requiredResources,
Resource resource,
OutputStream stream) |
int |
ListOfAnnotators.beforeResourceInBatch(LinkedHashSet<String> requiredResources,
Resource resource,
OutputStream stream) |
int |
ModuleAnnotator.beforeResourceInBatch(LinkedHashSet<String> requiredResources,
Resource resource,
OutputStream stream) |
| Modifier and Type | Method and Description |
|---|---|
protected Resource |
Config.buildResource(Bundle bundle,
com.atlassian.plugin.elements.ResourceLocation resourceLocation)
Helper to hide bunch of integration code and simplify resource creation.
|
Resource |
Config.getModuleResource(String completeKey,
String name)
Get not declared Resource.
|
Resource |
Config.getPluginResource(String pluginKey,
String name)
Get Resource for Plugin.
|
| Modifier and Type | Method and Description |
|---|---|
LinkedHashMap<String,Resource> |
Config.getResourcesWithoutCache(Bundle bundle)
Queries the plugin system and return list of Resources for Web Resource.
|
| Modifier and Type | Method and Description |
|---|---|
InputStream |
Config.getStreamFor(Resource resource,
String path)
Returns stream for file with given location for given resource.
|
| Modifier and Type | Method and Description |
|---|---|
static Resource |
ResourceServingHelpers.getModuleResource(Globals globals,
String completeKeyOrPluginKey,
String resourceName)
Get Resource for non WebResource Module.
|
protected static Resource |
ResourceServingHelpers.getPluginResource(Globals globals,
String completeKeyOrPluginKey,
String resourceName)
Get Resource for Plugin.
|
static Resource |
ResourceServingHelpers.getResource(RequestCache requestCache,
Collection<String> bundles,
String resourceName)
Get Resource for one of Web Resources.
|
static Resource |
ResourceServingHelpers.getResource(RequestCache requestCache,
String completeKey,
String resourceName)
Get resource for Web Resource or Plugin, also resolves relative paths.
|
protected static Resource |
ResourceServingHelpers.getResourceRelativeToPlugin(Globals globals,
String completeKeyOrPluginKey,
String resourceName)
Deprecated.
since v3.3.2
|
protected static Resource |
ResourceServingHelpers.getResourceRelativeToWebResource(RequestCache requestCache,
String completeKey,
String resourceName)
Deprecated.
since v3.3.2
|
protected static Resource |
ResourceServingHelpers.getWebResourceResource(RequestCache requestCache,
String completeKey,
String resourceName)
Get Resource for Web Resource.
|
| Modifier and Type | Method and Description |
|---|---|
List<Resource> |
BaseHelpers.ResourceFinder.end()
Run query and get found resources.
|
static List<Resource> |
BaseHelpers.getResources(RequestCache requestCache,
Collection<String> keys)
Get Resources for list of Web Resources.
|
List<Resource> |
UrlGenerationHelpers.SubBatch.getResourcesOfType(RequestCache requestCache,
String type) |
List<Resource> |
UrlGenerationHelpers.WebResourceBatch.getStandaloneResourcesOfType(RequestCache requestCache,
String type) |
List<Resource> |
UrlGenerationHelpers.ContextBatch.getStandaloneResourcesOfType(RequestCache requestCache,
String type) |
protected static List<Resource> |
UrlGenerationHelpers.resourcesOfType(Collection<Resource> resources,
String type)
Get resources of given type.
|
static com.google.common.base.Predicate<Resource> |
ResourceServingHelpers.shouldBeIncludedInBatch(String type,
Map<String,String> params)
Select Resources that should be included in batch.
|
| 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 String |
ResourceServingHelpers.buildKey(Globals globals,
Resource resource,
Map<String,String> params)
The `params` contains all the params from url, so if we build the key using all params it will
be correct but inefficient for the caching.
|
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.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 List<ResourceUrl> |
UrlGenerationHelpers.createResourceUrlsForRedirectResources(RequestCache requestCache,
UrlBuildingStrategy urlBuilderStrategy,
List<Resource> resources)
Creates Resource URLs for redirect resources.
|
BaseHelpers.ResourceFinder |
BaseHelpers.ResourceFinder.filter(com.google.common.base.Predicate<Resource> filter)
Filter resources.
|
protected static List<Resource> |
UrlGenerationHelpers.resourcesOfType(Collection<Resource> resources,
String type)
Get resources of given type.
|
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.
|
| Constructor and Description |
|---|
ContextBatch(List<String> included,
LinkedHashSet<String> excluded,
List<String> skippedWebResourcesWithUrlReadingConditions,
List<String> excludedWithoutApplyingConditions,
List<UrlGenerationHelpers.SubBatch> subBatches,
List<Resource> standaloneResources,
boolean isAdditionalSortingRequired) |
SubBatch(Map<String,String> resourcesParams,
Bundle bundle,
List<Resource> resources) |
SubBatch(Map<String,String> resourcesParams,
List<Bundle> bundles,
List<Resource> resources) |
WebResourceBatch(String key,
List<UrlGenerationHelpers.SubBatch> subBatches,
List<Resource> standaloneResources) |
| Modifier and Type | Method and Description |
|---|---|
protected Resource |
Controller.getResourceRelativeToBatch(Collection<String> included,
LinkedHashSet<String> excluded,
String resourceName,
boolean resolveDependencies,
boolean withLegacyConditions)
Get Resource relative to Batch.
|
| Modifier and Type | Method and Description |
|---|---|
protected List<Resource> |
Controller.getBatchResources(Collection<String> included,
LinkedHashSet<String> excluded,
String type,
boolean resolveDependencies,
boolean withLegacyConditions)
Get Resources for Batch (all types of Batch - Web Resource Batch, Super Batch, Context Batch).
|
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
Controller.handleNotFoundRedirectAndNotModified(Resource resource)
Handle not found resources, redirects and not modified resources.
|
String |
Router.resourceUrlWithoutHash(Resource resource,
Map<String,String> params) |
protected void |
Controller.serveResource(LinkedHashSet<String> requiredResources,
Resource resource,
boolean applyTransformations,
boolean isCachingEnabled)
Serves Resource.
|
protected void |
Controller.serveSourceMap(LinkedHashSet<String> requiredResources,
Resource resource,
boolean isCachingEnabled)
Serves Source Map.
|
String |
Router.sourceUrl(Resource resource) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
Controller.serveResources(LinkedHashSet<String> requiredResources,
com.google.common.base.Supplier<Collection<Resource>> resources,
boolean isCachingEnabled)
Serves resources.
|
| Modifier and Type | Class and Description |
|---|---|
class |
ContextResource
Virtual resource for Context, needed to add `require` statement for modules.
|
class |
ModuleResource
Virtual resource for JS Module, stub to fit in existing API.
|
| Modifier and Type | Method and Description |
|---|---|
Resource |
WebModule.getResource()
Get resource for this module.
|
| Modifier and Type | Method and Description |
|---|---|
LinkedHashMap<String,Resource> |
WebResource.getResources(RequestCache cache) |
LinkedHashMap<String,Resource> |
Bundle.getResources(RequestCache cache)
Get Resources of this Web Resource.
|
LinkedHashMap<String,Resource> |
Context.getResources(RequestCache cache) |
LinkedHashMap<String,Resource> |
WebModule.getResources(RequestCache cache) |
| Modifier and Type | Method and Description |
|---|---|
void |
Response.sendRedirect(Resource resource) |
| Modifier and Type | Method and Description |
|---|---|
static Content |
MinificationTransformer.minify(Config config,
Resource resource,
Content content,
String sourceUrl) |
Copyright © 2017 Atlassian. All rights reserved.