| Modifier and Type | Field and Description |
|---|---|
protected RequestCache |
RequestState.cache |
| Modifier and Type | Method and Description |
|---|---|
RequestCache |
RequestState.getCache() |
| 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.
|
| Modifier and Type | Method and Description |
|---|---|
protected static UrlCache.IncludedExcludedConditionsAndBatchingOptions |
UrlGenerationHelpers.buildIncludedExcludedConditionsAndBatchingOptions(RequestCache requestCache,
UrlBuildingStrategy urlBuilderStrategy,
LinkedHashSet<String> included,
LinkedHashSet<String> excluded)
Building the cache key of included, excluded and conditions.
|
protected static UrlGenerationHelpers.CalculatedBatches |
UrlGenerationHelpers.calculateBatches(RequestCache requestCache,
UrlBuildingStrategy urlBuilderStrategy,
LinkedHashSet<String> included,
LinkedHashSet<String> excluded)
Calculate batches.
|
protected static List<ResourceUrl> |
UrlGenerationHelpers.createResourceUrlsForRedirectResources(RequestCache requestCache,
UrlBuildingStrategy urlBuilderStrategy,
List<Resource> resources)
Creates Resource URLs for redirect resources.
|
protected static com.atlassian.plugin.webresource.impl.helpers.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 com.atlassian.plugin.webresource.impl.helpers.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.
|
protected static Set<CachedCondition> |
UrlGenerationHelpers.getConditions(RequestCache requestCache,
UrlCache.IncludedAndExcluded includedAndExcluded,
UrlBuildingStrategy urlBuilderStrategy)
Get web resources with conditions, the subset of the resolve web resources for given set of included and excluded.
|
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
|
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 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.
|
static LinkedHashSet<String> |
UrlGenerationHelpers.resolveExcluded(RequestCache requestCache,
UrlBuildingStrategy urlBuilderStrategy,
List<String> allIncluded,
LinkedHashSet<String> allExcluded)
Resolves list of excluded resources.
|
BaseHelpers.ResourceFinder |
BaseHelpers.BundleFinder.resources(RequestCache requestCache)
Search for Resources instead of Bundles.
|
protected static UrlGenerationHelpers.SplitSubBatches |
UrlGenerationHelpers.splitBatchIntoSubBatches(RequestCache requestCache,
Iterable<String> completeKeys,
boolean doSorting)
Split batch into sub batches and standalone resources, same code used to split both context and resource batches.
|
protected static Tuple<List<UrlGenerationHelpers.ContextBatch>,List<UrlGenerationHelpers.WebResourceBatch>> |
UrlGenerationHelpers.splitIntoSubBatches(RequestCache requestCache,
UrlBuildingStrategy urlBuilderStrategy,
List<UrlGenerationHelpers.ContextBatchKey> contextBatchKeys,
List<String> webResourceBatchKeys)
Split batches into sub batches grouped by URL parameters and set of standalone resources.
|
| Constructor and Description |
|---|
ResourceFinder(BaseHelpers.BundleFinder bundleFinder,
RequestCache requestCache) |
| 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 |
|---|---|
Iterable<PluginResource> |
ContextBatchBuilder.buildBatched(RequestCache requestCache,
UrlBuildingStrategy urlBuildingStrategy,
List<String> includedContexts,
Set<String> excludedContexts) |
static LegacyUrlGenerationHelpers.Resolved |
LegacyUrlGenerationHelpers.calculateBatches(RequestCache requestCache,
UrlBuildingStrategy urlBuildingStrategy,
LinkedHashSet<String> allIncluded,
LinkedHashSet<String> allExcluded,
boolean includeDependenciesForFailedUrlReadingConditions)
Resolves given included and excluded web resources and contexts into batches.
|
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 © 2017 Atlassian. All rights reserved.