| Modifier and Type | Method and Description |
|---|---|
List<Resource> |
WebResourceSubBatchUrl.getResources(RequestCache requestCache) |
List<Resource> |
ContextSubBatchResourceUrl.getResources(RequestCache requestCache) |
abstract List<Resource> |
ResourceUrl.getResources(RequestCache requestCache) |
List<Resource> |
ResourceUrlImpl.getResources(RequestCache requestCache) |
| Modifier and Type | Method and Description |
|---|---|
Content |
WebResourceTransformation.transform(CdnResourceUrlTransformer cdnResourceUrlTransformer,
TransformerCache transformerCache,
Resource resource,
Content content,
com.atlassian.plugin.elements.ResourceLocation resourceLocation,
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 | Method and Description |
|---|---|
Map<Bundle,LinkedHashMap<String,Resource>> |
RequestCache.getCachedResources()
Needed by WebResource as a storage for Cache.
|
List<Resource> |
RequestCache.getCachedResources(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<ResourceKey> |
RequestCache.toResourceKeys(List<Resource> resources) |
| Constructor and Description |
|---|
ResourceKey(Resource resource) |
| Modifier and Type | Method and Description |
|---|---|
void |
ResourceContentAnnotator.afterResource(LinkedHashSet<String> requiredResources,
String url,
Resource resource,
Map<String,String> params,
OutputStream stream)
Called after the resource content is written.
|
void |
ListOfAnnotators.afterResource(LinkedHashSet<String> requiredResources,
String url,
Resource resource,
Map<String,String> params,
OutputStream stream) |
void |
TryCatchJsResourceContentAnnotator.afterResourceInBatch(LinkedHashSet<String> requiredResources,
Resource resource,
Map<String,String> params,
OutputStream stream) |
void |
SemicolonResourceContentAnnotator.afterResourceInBatch(LinkedHashSet<String> requiredResources,
Resource resource,
Map<String,String> params,
OutputStream stream) |
void |
ResourceContentAnnotator.afterResourceInBatch(LinkedHashSet<String> requiredResources,
Resource resource,
Map<String,String> params,
OutputStream stream)
Called after the resource content is written in batch.
|
void |
ListOfAnnotators.afterResourceInBatch(LinkedHashSet<String> requiredResources,
Resource resource,
Map<String,String> params,
OutputStream stream) |
int |
ResourceContentAnnotator.beforeResource(LinkedHashSet<String> requiredResources,
String url,
Resource resource,
Map<String,String> params,
OutputStream stream)
Called before the resource content is written.
|
int |
ListOfAnnotators.beforeResource(LinkedHashSet<String> requiredResources,
String url,
Resource resource,
Map<String,String> params,
OutputStream stream) |
int |
TryCatchJsResourceContentAnnotator.beforeResourceInBatch(LinkedHashSet<String> requiredResources,
Resource resource,
Map<String,String> params,
OutputStream stream) |
int |
SemicolonResourceContentAnnotator.beforeResourceInBatch(LinkedHashSet<String> requiredResources,
Resource resource,
Map<String,String> params,
OutputStream stream) |
int |
LocationContentAnnotator.beforeResourceInBatch(LinkedHashSet<String> requiredResources,
Resource resource,
Map<String,String> params,
OutputStream out) |
int |
ResourceContentAnnotator.beforeResourceInBatch(LinkedHashSet<String> requiredResources,
Resource resource,
Map<String,String> params,
OutputStream stream)
Called before the resource content is written in batch.
|
int |
ListOfAnnotators.beforeResourceInBatch(LinkedHashSet<String> requiredResources,
Resource resource,
Map<String,String> params,
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 |
|---|---|
List<Resource> |
ResourceFinder.end()
Run query and get found resources.
|
List<Resource> |
ResourceFinder.getResources(Collection<String> keys)
Get Resources for list of Web Resources.
|
| Modifier and Type | Method and Description |
|---|---|
ResourceFinder |
ResourceFinder.filter(com.google.common.base.Predicate<Resource> filter)
Filter resources.
|
| Modifier and Type | Method and Description |
|---|---|
static Resource |
ResourceServingHelpers.getFromOSGiPluginModuleResource(Globals globals,
String completeKeyOrPluginKey,
String resourceName)
Get Resource from an OSGi plugin 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 |
|---|---|
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 |
|---|---|
static Content |
ResourceServingHelpers.transform(Globals globals,
LinkedHashSet<String> requiredResources,
String url,
String type,
Supplier<Collection<Resource>> resourcesSupplier,
Map<String,String> params)
Apply conditions and transformations to list of Resources and generate resulting Batch.
|
| Modifier and Type | Method and Description |
|---|---|
List<Resource> |
SubBatch.getResourcesOfType(RequestCache requestCache,
String type) |
List<Resource> |
WebResourceBatch.getStandaloneResourcesOfType(RequestCache requestCache,
String type) |
List<Resource> |
ContextBatch.getStandaloneResourcesOfType(RequestCache requestCache,
String type) |
static List<Resource> |
UrlGenerationHelpers.resourcesOfType(Collection<Resource> resources,
String type)
Get resources of given type.
|
| 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.
|
static List<Resource> |
UrlGenerationHelpers.resourcesOfType(Collection<Resource> resources,
String type)
Get resources of given type.
|
| Constructor and Description |
|---|
ContextBatch(List<String> included,
LinkedHashSet<String> excluded,
List<String> skippedWebResourcesWithUrlReadingConditions,
List<String> excludedWithoutApplyingConditions,
List<SubBatch> subBatches,
List<Resource> standaloneResources,
boolean isAdditionalSortingRequired) |
SubBatch(Map<String,String> resourcesParams,
Bundle bundle,
List<Resource> resources) |
SubBatch(Map<String,String> resourcesParams,
List<Bundle> filteredBundles,
List<Resource> resources,
List<Bundle> allFoundBundles) |
WebResourceBatch(String key,
List<SubBatch> subBatches,
List<Resource> standaloneResources) |
| Modifier and Type | Method and Description |
|---|---|
protected Resource |
Controller.getResourceRelativeToBatch(RawRequest raw,
String resourceName,
boolean resolveDependencies,
boolean withLegacyConditions)
Get Resource relative to Batch.
|
| Modifier and Type | Method and Description |
|---|---|
protected List<Resource> |
Controller.getBatchResources(RawRequest raw,
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.prebuildSourceUrl(Resource resource) |
String |
Router.resourceUrlWithoutHash(Resource resource,
Map<String,String> params) |
protected void |
Controller.serveResource(RawRequest raw,
Resource resource)
Causes the content inside resource to be served in response.
|
protected void |
Controller.serveResource(RawRequest raw,
Resource resource,
boolean applyTransformations,
boolean isCachingEnabled) |
protected void |
Controller.serveSourceMap(RawRequest raw,
Resource resource)
Serves Source Map.
|
String |
Router.sourceUrl(Resource resource) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
Controller.serveResources(RawRequest raw,
Supplier<Collection<Resource>> resources,
boolean isCachingEnabled)
Causes all content inside every
Resource provided by resources to be served in response. |
| Modifier and Type | Method and Description |
|---|---|
LinkedHashMap<String,Resource> |
Context.getResources(RequestCache cache) |
LinkedHashMap<String,Resource> |
Bundle.getResources(RequestCache cache)
Get Resources of this Web Resource.
|
LinkedHashMap<String,Resource> |
WebResource.getResources(RequestCache cache) |
| Modifier and Type | Class and Description |
|---|---|
class |
ContextResource
Virtual resource for Context, needed to add `require` statement for modules.
|
| Modifier and Type | Method and Description |
|---|---|
Resource |
ResourceFactory.createResource(Bundle parent,
com.atlassian.plugin.elements.ResourceLocation resourceLocation,
String nameType,
String locationType) |
Resource |
ResourceFactory.createResourceWithRelativePath(Bundle parent,
com.atlassian.plugin.elements.ResourceLocation resourceLocation,
String nameType,
String locationType,
String overriddenPath)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
static com.atlassian.sourcemap.ReadableSourceMap |
Support.getSourceMap(String resourcePath,
Resource resource,
String sourceUrl) |
| Modifier and Type | Method and Description |
|---|---|
@NonNull InitialContent |
InitialContentFactory.lookup(@NonNull Resource resource)
Look up for a certain
InitialContent based on a Resource. |
| Modifier and Type | Method and Description |
|---|---|
static Content |
CompileTimeTransformer.process(Globals globals,
Resource resource,
Content content)
Deprecated.
|
Copyright © 2024 Atlassian. All rights reserved.