Uses of Class
com.atlassian.plugin.webresource.impl.snapshot.resource.Resource
Packages that use Resource
Package
Description
-
Uses of Resource in com.atlassian.plugin.webresource
Methods in com.atlassian.plugin.webresource that return types with arguments of type ResourceModifier and TypeMethodDescriptionContextSubBatchResourceUrl.getResources(RequestCache requestCache) ResourceUrl.getResources(RequestCache requestCache) ResourceUrlImpl.getResources(RequestCache requestCache) WebResourceSubBatchUrl.getResources(RequestCache requestCache) Methods in com.atlassian.plugin.webresource with parameters of type ResourceModifier and TypeMethodDescriptionWebResourceTransformation.transform(CdnResourceUrlTransformer cdnResourceUrlTransformer, TransformerCache transformerCache, Resource resource, Content content, com.atlassian.plugin.elements.ResourceLocation resourceLocation, QueryParams params, String sourceUrl) Constructors in com.atlassian.plugin.webresource with parameters of type Resource -
Uses of Resource in com.atlassian.plugin.webresource.impl
Methods in com.atlassian.plugin.webresource.impl that return types with arguments of type ResourceModifier and TypeMethodDescriptionRequestCache.getCachedResources()Needed by WebResource as a storage for Cache.RequestCache.getCachedResources(ResourceKeysSupplier resourceKeysSupplier) Batches and Sub Batches are cached and as such can't contain references to Resources, this cache helps with that.Method parameters in com.atlassian.plugin.webresource.impl with type arguments of type ResourceModifier and TypeMethodDescriptionstatic List<ResourceKey>RequestCache.toResourceKeys(List<Resource> resources) Constructors in com.atlassian.plugin.webresource.impl with parameters of type Resource -
Uses of Resource in com.atlassian.plugin.webresource.impl.annotators
Methods in com.atlassian.plugin.webresource.impl.annotators with parameters of type ResourceModifier and TypeMethodDescriptionvoidListOfAnnotators.afterResource(LinkedHashSet<String> requiredResources, String url, Resource resource, Map<String, String> params, OutputStream stream) voidResourceContentAnnotator.afterResource(LinkedHashSet<String> requiredResources, String url, Resource resource, Map<String, String> params, OutputStream stream) Called after the resource content is written.voidListOfAnnotators.afterResourceInBatch(LinkedHashSet<String> requiredResources, Resource resource, Map<String, String> params, OutputStream stream) voidResourceContentAnnotator.afterResourceInBatch(LinkedHashSet<String> requiredResources, Resource resource, Map<String, String> params, OutputStream stream) Called after the resource content is written in batch.voidSemicolonResourceContentAnnotator.afterResourceInBatch(LinkedHashSet<String> requiredResources, Resource resource, Map<String, String> params, OutputStream stream) voidTryCatchJsResourceContentAnnotator.afterResourceInBatch(LinkedHashSet<String> requiredResources, Resource resource, Map<String, String> params, OutputStream stream) intListOfAnnotators.beforeResource(LinkedHashSet<String> requiredResources, String url, Resource resource, Map<String, String> params, OutputStream stream) intResourceContentAnnotator.beforeResource(LinkedHashSet<String> requiredResources, String url, Resource resource, Map<String, String> params, OutputStream stream) Called before the resource content is written.intListOfAnnotators.beforeResourceInBatch(LinkedHashSet<String> requiredResources, Resource resource, Map<String, String> params, OutputStream stream) intLocationContentAnnotator.beforeResourceInBatch(LinkedHashSet<String> requiredResources, Resource resource, Map<String, String> params, OutputStream out) intResourceContentAnnotator.beforeResourceInBatch(LinkedHashSet<String> requiredResources, Resource resource, Map<String, String> params, OutputStream stream) Called before the resource content is written in batch.intSemicolonResourceContentAnnotator.beforeResourceInBatch(LinkedHashSet<String> requiredResources, Resource resource, Map<String, String> params, OutputStream stream) intTryCatchJsResourceContentAnnotator.beforeResourceInBatch(LinkedHashSet<String> requiredResources, Resource resource, Map<String, String> params, OutputStream stream) -
Uses of Resource in com.atlassian.plugin.webresource.impl.config
Methods in com.atlassian.plugin.webresource.impl.config that return ResourceModifier and TypeMethodDescriptionprotected ResourceConfig.buildResource(Bundle bundle, com.atlassian.plugin.elements.ResourceLocation resourceLocation) Helper to hide bunch of integration code and simplify resource creation.Config.getModuleResource(String completeKey, String name) Get not declared Resource.Config.getPluginResource(String pluginKey, String name) Get Resource for Plugin.Methods in com.atlassian.plugin.webresource.impl.config that return types with arguments of type ResourceModifier and TypeMethodDescriptionConfig.getResourcesWithoutCache(Bundle bundle) Queries the plugin system and return list of Resources for Web Resource. -
Uses of Resource in com.atlassian.plugin.webresource.impl.discovery
Methods in com.atlassian.plugin.webresource.impl.discovery that return types with arguments of type ResourceModifier and TypeMethodDescriptionResourceFinder.end()Run query and get found resources.ResourceFinder.getResources(Collection<String> keys) Get Resources for list of Web Resources.Method parameters in com.atlassian.plugin.webresource.impl.discovery with type arguments of type ResourceModifier and TypeMethodDescriptionFilter resources. -
Uses of Resource in com.atlassian.plugin.webresource.impl.helpers
Methods in com.atlassian.plugin.webresource.impl.helpers that return ResourceModifier and TypeMethodDescriptionstatic ResourceResourceServingHelpers.getFromOSGiPluginModuleResource(Globals globals, String completeKeyOrPluginKey, String resourceName) Get Resource from an OSGi plugin module.protected static ResourceResourceServingHelpers.getPluginResource(Globals globals, String completeKeyOrPluginKey, String resourceName) Get Resource for Plugin.static ResourceResourceServingHelpers.getResource(RequestCache requestCache, String completeKey, String resourceName) Get resource for Web Resource or Plugin, also resolves relative paths.static ResourceResourceServingHelpers.getResource(RequestCache requestCache, Collection<String> bundles, String resourceName) Get Resource for one of Web Resources.protected static ResourceResourceServingHelpers.getResourceRelativeToPlugin(Globals globals, String completeKeyOrPluginKey, String resourceName) Deprecated.since v3.3.2protected static ResourceResourceServingHelpers.getResourceRelativeToWebResource(RequestCache requestCache, String completeKey, String resourceName) Deprecated.since v3.3.2protected static ResourceResourceServingHelpers.getWebResourceResource(RequestCache requestCache, String completeKey, String resourceName) Get Resource for Web Resource.Methods in com.atlassian.plugin.webresource.impl.helpers that return types with arguments of type ResourceModifier and TypeMethodDescriptionResourceServingHelpers.shouldBeIncludedInBatch(String type, Map<String, String> params) Select Resources that should be included in batch.Methods in com.atlassian.plugin.webresource.impl.helpers with parameters of type ResourceModifier and TypeMethodDescriptionprotected static ContentResourceServingHelpers.applyStaticTransformers(Globals globals, Resource resource, Content content, Map<String, String> params, String sourceUrl) Apply Static Transformers to Resource.protected static ContentResourceServingHelpers.applyTransformers(Globals globals, Resource resource, Content content, Map<String, String> params, String sourceUrl) Apply Transformers to Resource.static StringThe `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 ContentResourceServingHelpers.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 ContentResourceServingHelpers.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 ContentResourceServingHelpers.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.Method parameters in com.atlassian.plugin.webresource.impl.helpers with type arguments of type ResourceModifier and TypeMethodDescriptionstatic ContentResourceServingHelpers.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. -
Uses of Resource in com.atlassian.plugin.webresource.impl.helpers.url
Methods in com.atlassian.plugin.webresource.impl.helpers.url that return types with arguments of type ResourceModifier and TypeMethodDescriptionSubBatch.getResourcesOfType(RequestCache requestCache, String type) ContextBatch.getStandaloneResourcesOfType(RequestCache requestCache, String type) WebResourceBatch.getStandaloneResourcesOfType(RequestCache requestCache, String type) UrlGenerationHelpers.resourcesOfType(Collection<Resource> resources, String type) Get resources of given type.Method parameters in com.atlassian.plugin.webresource.impl.helpers.url with type arguments of type ResourceModifier and TypeMethodDescriptionprotected static List<ResourceUrl>UrlGenerationHelpers.createResourceUrlsForRedirectResources(RequestCache requestCache, UrlBuildingStrategy urlBuilderStrategy, List<Resource> resources) Creates Resource URLs for redirect resources.UrlGenerationHelpers.resourcesOfType(Collection<Resource> resources, String type) Get resources of given type.Constructor parameters in com.atlassian.plugin.webresource.impl.helpers.url with type arguments of type Resource -
Uses of Resource in com.atlassian.plugin.webresource.impl.http
Methods in com.atlassian.plugin.webresource.impl.http that return ResourceModifier and TypeMethodDescriptionprotected ResourceController.getResourceRelativeToBatch(RawRequest raw, String resourceName, boolean resolveDependencies, boolean withLegacyConditions) Get Resource relative to Batch.Methods in com.atlassian.plugin.webresource.impl.http that return types with arguments of type ResourceModifier and TypeMethodDescriptionController.getBatchResources(RawRequest raw, String type, boolean resolveDependencies, boolean withLegacyConditions) Get Resources for Batch (all types of Batch - Web Resource Batch, Super Batch, Context Batch).Methods in com.atlassian.plugin.webresource.impl.http with parameters of type ResourceModifier and TypeMethodDescriptionprotected booleanController.handleNotFoundRedirectAndNotModified(Resource resource) Handle not found resources, redirects and not modified resources.Router.prebuildSourceUrl(Resource resource) Router.resourceUrlWithoutHash(Resource resource, Map<String, String> params) protected voidController.serveResource(RawRequest raw, Resource resource) Causes the content inside resource to be served in response.protected voidController.serveResource(RawRequest raw, Resource resource, boolean applyTransformations, boolean isCachingEnabled) protected voidController.serveSourceMap(RawRequest raw, Resource resource) Serves Source Map.Method parameters in com.atlassian.plugin.webresource.impl.http with type arguments of type ResourceModifier and TypeMethodDescriptionprotected voidController.serveResources(RawRequest raw, Supplier<Collection<Resource>> resources, boolean isCachingEnabled) Causes all content inside everyResourceprovided by resources to be served in response. -
Uses of Resource in com.atlassian.plugin.webresource.impl.snapshot
Methods in com.atlassian.plugin.webresource.impl.snapshot that return types with arguments of type ResourceModifier and TypeMethodDescriptionBundle.getResources(RequestCache cache) Get Resources of this Web Resource.Context.getResources(RequestCache cache) WebResource.getResources(RequestCache cache) -
Uses of Resource in com.atlassian.plugin.webresource.impl.snapshot.resource
Methods in com.atlassian.plugin.webresource.impl.snapshot.resource that return ResourceModifier and TypeMethodDescriptionResourceFactory.createResource(Bundle parent, com.atlassian.plugin.elements.ResourceLocation resourceLocation, String nameType, String locationType) ResourceFactory.createResourceWithRelativePath(Bundle parent, com.atlassian.plugin.elements.ResourceLocation resourceLocation, String nameType, String locationType, String overriddenPath) Deprecated. -
Uses of Resource in com.atlassian.plugin.webresource.impl.support
Methods in com.atlassian.plugin.webresource.impl.support with parameters of type ResourceModifier and TypeMethodDescriptionstatic com.atlassian.sourcemap.ReadableSourceMapSupport.getSourceMap(String resourcePath, Resource resource, String sourceUrl) -
Uses of Resource in com.atlassian.plugin.webresource.impl.support.factory
Methods in com.atlassian.plugin.webresource.impl.support.factory with parameters of type ResourceModifier and TypeMethodDescription@NonNull InitialContentLook up for a certainInitialContentbased on aResource.