| 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 |
|---|---|
RequestCache |
RequestState.getRequestCache() |
| Modifier and Type | Method and Description |
|---|---|
void |
CachedCondition.addToUrlSafely(RequestCache requestCache,
UrlBuilder urlBuilder,
UrlBuildingStrategy urlBuilderStrategy)
Add parameters of condition to url.
|
boolean |
CachedCondition.evaluateSafely(RequestCache requestCache,
Map<String,String> params)
Evaluate condition against parameters.
|
boolean |
CachedCondition.evaluateSafely(RequestCache requestCache,
UrlBuildingStrategy urlBuilderStrategy)
Evaluate condition.
|
| Constructor and Description |
|---|
ResourceFinder(BundleFinder bundleFinder,
RequestCache requestCache) |
| Modifier and Type | Method and Description |
|---|---|
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.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.
|
static com.google.common.base.Predicate<Bundle> |
BaseHelpers.isConditionsSatisfied(RequestCache requestCache,
Map<String,String> params)
Filter by web resource conditions evaluated against params.
|
static com.google.common.base.Predicate<Bundle> |
BaseHelpers.isConditionsSatisfied(RequestCache requestCache,
UrlBuildingStrategy urlBuilderStrategy)
Filter by web resource conditions evaluated immediately.
|
| Modifier and Type | Method and Description |
|---|---|
protected static UrlCache.IncludedExcludedConditionsAndBatchingOptions |
UrlGenerationHelpers.buildIncludedExcludedConditionsAndBatchingOptions(RequestCache requestCache,
UrlBuildingStrategy urlBuilderStrategy,
Collection<String> topLevelIncluded,
Collection<String> topLevelExcluded)
Building the cache key of included, excluded and conditions.
|
protected static CalculatedBatches |
UrlGenerationHelpers.calculateBatches(RequestCache requestCache,
UrlBuildingStrategy urlBuilderStrategy,
LinkedHashSet<String> topLevelIncluded,
LinkedHashSet<String> allExcluded)
Deprecated.
|
protected static CalculatedBatches |
UrlGenerationHelpers.calculateBatches(RequestCache requestCache,
UrlBuildingStrategy urlBuildingStrategy,
LinkedHashSet<String> topLevelIncluded,
LinkedHashSet<String> allExcluded,
Set<String> topLevelExcluded)
Groups given web resources and contexts in to batches, taking
any content that has already been served in to account.
|
static String |
UrlGenerationHelpers.calculateBundleHash(RawRequest rawRequest,
RequestCache requestCache)
Calculates URL resource hashes for given request.
|
protected static List<ResourceUrl> |
UrlGenerationHelpers.createResourceUrlsForRedirectResources(RequestCache requestCache,
UrlBuildingStrategy urlBuilderStrategy,
List<Resource> resources)
Creates Resource URLs for redirect resources.
|
protected static StateEncodedUrlResult |
UrlGenerationHelpers.encodeStateInUrlIfSupported(RequestCache requestCache,
UrlBuildingStrategy urlBuilderStrategy,
String type,
Map<String,String> params,
Bundle bundle,
List<Bundle> skipped,
List<Bundle> excludedWithoutApplyingConditions)
Collect and encode URL state for given Resources, it collects resource params, condition params and transformer params.
|
protected static StateEncodedUrlResult |
UrlGenerationHelpers.encodeStateInUrlIfSupported(RequestCache requestCache,
UrlBuildingStrategy urlBuilderStrategy,
String type,
Map<String,String> params,
List<Bundle> bundles,
List<Bundle> skipped,
List<Bundle> excludedWithoutApplyingConditions)
Collect and encode URL state for given Resources, it collects resource params, condition params and transformer params.
|
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 Set<String> |
UrlGenerationHelpers.resolveExcluded(RequestCache requestCache,
UrlBuildingStrategy urlBuilderStrategy,
Collection<String> topLevelIncluded,
Collection<String> topLevelExcluded)
Deprecated.
use
DependencyGraph or BundleFinder instead
to avoid generating an entire URL set just to traverse the dependency graph. |
static Set<String> |
UrlGenerationHelpers.resolveExcluded(RequestCache requestCache,
UrlCache urlCache,
UrlBuildingStrategy urlBuilderStrategy,
Collection<String> topLevelIncluded,
Collection<String> topLevelExcluded)
Deprecated.
use
DependencyGraph or BundleFinder instead
to avoid generating an entire URL set just to traverse the dependency graph. |
protected static com.atlassian.plugin.webresource.impl.helpers.url.SplitSubBatches |
UrlGenerationHelpers.splitBatchIntoSubBatches(RequestCache requestCache,
Found found,
boolean doSorting)
Split batch into sub batches and standalone resources, same code used to split both context and resource batches.
|
static Tuple<List<ContextBatch>,List<WebResourceBatch>> |
UrlGenerationHelpers.splitIntoSubBatches(RequestCache requestCache,
UrlBuildingStrategy urlBuilderStrategy,
List<ContextBatchKey> contextBatchKeys,
List<String> webResourceBatchKeys,
Set<String> allExcluded)
Split batches into sub batches grouped by URL parameters and set of standalone resources.
|
| 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 | Method and Description |
|---|---|
Iterable<PluginResource> |
ContextBatchBuilder.buildBatched(RequestCache requestCache,
UrlBuildingStrategy urlBuildingStrategy,
List<String> includedContexts,
InclusionState excludedThings) |
Iterable<PluginResource> |
ContextBatchBuilder.buildBatched(RequestCache requestCache,
UrlBuildingStrategy urlBuildingStrategy,
List<String> includedContexts,
Set<String> excludedContexts) |
static LegacyUrlGenerationHelpers.Resolved |
LegacyUrlGenerationHelpers.calculateBatches(RequestCache requestCache,
UrlBuildingStrategy urlBuildingStrategy,
Collection<String> topLevelIncluded,
Collection<String> excludedResolved,
boolean includeDependenciesForFailedUrlReadingConditions)
Deprecated.
|
static LegacyUrlGenerationHelpers.Resolved |
LegacyUrlGenerationHelpers.calculateBatches(RequestCache requestCache,
UrlBuildingStrategy urlBuildingStrategy,
Collection<String> topLevelIncluded,
Collection<String> allExcluded,
Set<String> topLevelExcluded,
boolean includeDependenciesForFailedUrlReadingConditions)
Groups given web resources and contexts in to batches, taking
any content that has already been served in to account.
|
Iterable<ModuleDescriptorStub> |
ResourceDependencyResolver.getDependencies(RequestCache requestCache,
UrlBuildingStrategy urlBuildingStrategy,
String moduleKey,
boolean excludeSuperBatchedResources,
boolean includeDependenciesForFailedUrlReadingConditions)
Returns an ordered set of the given resource and its dependencies.
|
Iterable<ModuleDescriptorStub> |
DefaultResourceDependencyResolver.getDependencies(RequestCache requestCache,
UrlBuildingStrategy urlBuildingStrategy,
String moduleKey,
boolean excludeSuperBatchedResources,
boolean includeDependenciesForFailedUrlReadingConditions) |
Iterable<ModuleDescriptorStub> |
DefaultResourceDependencyResolver.getDependenciesInContext(RequestCache requestCache,
UrlBuildingStrategy urlBuildingStrategy,
String context,
boolean excludeSuperBatchedResources,
Set<String> skippedResources,
boolean includeDependenciesForFailedUrlReadingConditions) |
Iterable<ModuleDescriptorStub> |
ResourceDependencyResolver.getDependenciesInContext(RequestCache requestCache,
UrlBuildingStrategy urlBuildingStrategy,
String context,
Set<String> skippedResources,
boolean includeDependenciesForFailedUrlReadingConditions)
Returns an ordered list of the resources in a given context and its dependencies.
|
Iterable<ModuleDescriptorStub> |
DefaultResourceDependencyResolver.getDependenciesInContext(RequestCache requestCache,
UrlBuildingStrategy urlBuildingStrategy,
String context,
Set<String> skippedResources,
boolean includeDependenciesForFailedUrlReadingConditions) |
Collection<PluginResource> |
ResourceRequirer.includeResources(RequestCache requestCache,
UrlBuildingStrategy urlBuildingStrategy,
Set<String> requiredWebResources,
Set<String> requiredContexts,
InclusionState inclusion) |
Copyright © 2024 Atlassian. All rights reserved.