| Modifier and Type | Method and Description |
|---|---|
void |
WebResourceTransformation.addTransformParameters(TransformerCache transformerCache,
TransformerParameters transformerParameters,
UrlBuilder urlBuilder,
UrlBuildingStrategy urlBuildingStrategy) |
| Modifier and Type | Method and Description |
|---|---|
void |
DecoratingCondition.addToUrl(UrlBuilder urlBuilder,
UrlBuildingStrategy urlBuilderStrategy)
Called when constructing the URL as the hosting HTML page is being served.
|
void |
DecoratingUrlReadingCondition.addToUrl(UrlBuilder urlBuilder,
UrlBuildingStrategy urlBuilderStrategy) |
boolean |
DecoratingCondition.shouldDisplayImmediate(Map<String,Object> context,
UrlBuildingStrategy urlBuilderStrategy)
Calls the legacy condition's wrapped shouldDisplay(Map context) method.
|
boolean |
DecoratingUrlReadingCondition.shouldDisplayImmediate(Map<String,Object> context,
UrlBuildingStrategy urlBuilderStrategy) |
boolean |
DecoratingAndCompositeCondition.shouldDisplayImmediate(Map<String,Object> context,
UrlBuildingStrategy urlBuilderStrategy) |
| Modifier and Type | Method and Description |
|---|---|
static UrlBuildingStrategy |
UrlBuildingStrategy.from(Optional<Coordinate> coord) |
UrlBuildingStrategy |
RequestState.getUrlStrategy() |
static UrlBuildingStrategy |
UrlBuildingStrategy.normal() |
static UrlBuildingStrategy |
UrlBuildingStrategy.overCoordinate(Coordinate coord) |
| Modifier and Type | Method and Description |
|---|---|
void |
CachedCondition.addToUrlSafely(RequestCache requestCache,
UrlBuilder urlBuilder,
UrlBuildingStrategy urlBuilderStrategy)
Add parameters of condition to url.
|
boolean |
CachedTransformers.addToUrlSafely(UrlBuilder urlBuilder,
UrlBuildingStrategy urlBuildingStrategy,
String type,
TransformerCache transformerCache,
TransformerParameters transformerParameters,
String webResourceKey)
Add transformer parameters to url.
|
boolean |
CachedCondition.evaluateSafely(RequestCache requestCache,
UrlBuildingStrategy urlBuilderStrategy)
Evaluate condition.
|
| Constructor and Description |
|---|
RequestState(Globals globals,
UrlBuildingStrategy urlBuildingStrategy) |
| 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.collectUrlStateAndBuildResourceUrls(RequestState requestState,
UrlBuildingStrategy urlBuilderStrategy,
List<UrlGenerationHelpers.ContextBatch> contextBatches,
List<UrlGenerationHelpers.WebResourceBatch> webResourceBatches)
Collect URL State for Conditions and Transformers and build Resource URLs.
|
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 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.
|
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.
|
| 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> |
DefaultResourceDependencyResolver.getDependencies(RequestCache requestCache,
UrlBuildingStrategy urlBuildingStrategy,
String moduleKey,
boolean excludeSuperBatchedResources,
boolean includeDependenciesForFailedUrlReadingConditions) |
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.getDependenciesInContext(RequestCache requestCache,
UrlBuildingStrategy urlBuildingStrategy,
String context,
boolean excludeSuperBatchedResources,
Set<String> skippedResources,
boolean includeDependenciesForFailedUrlReadingConditions) |
Iterable<ModuleDescriptorStub> |
DefaultResourceDependencyResolver.getDependenciesInContext(RequestCache requestCache,
UrlBuildingStrategy urlBuildingStrategy,
String context,
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.
|
Collection<PluginResource> |
ResourceRequirer.includeResources(RequestCache requestCache,
UrlBuildingStrategy urlBuildingStrategy,
Set<String> requiredWebResources,
Set<String> requiredContexts,
InclusionState inclusion) |
| Modifier and Type | Method and Description |
|---|---|
void |
StaticTransformers.addToUrl(String locationType,
TransformerParameters transformerParameters,
UrlBuilder urlBuilder,
UrlBuildingStrategy urlBuildingStrategy)
Contributes to the URL for all static transformers matching the given type
|
void |
DefaultStaticTransformers.addToUrl(String locationType,
TransformerParameters transformerParameters,
UrlBuilder urlBuilder,
UrlBuildingStrategy urlBuildingStrategy) |
Copyright © 2019 Atlassian. All rights reserved.