Class ConfluenceWebResourceIntegration
java.lang.Object
com.atlassian.confluence.plugin.webresource.ConfluenceWebResourceIntegration
- All Implemented Interfaces:
- com.atlassian.plugin.webresource.WebResourceIntegration
public class ConfluenceWebResourceIntegration
extends Object
implements com.atlassian.plugin.webresource.WebResourceIntegration
Confluence implementation of WebResourceIntegration, for use with the static resource caching code.
- 
Field SummaryFields
- 
Constructor SummaryConstructorsConstructorDescriptionConfluenceWebResourceIntegration(com.atlassian.plugin.PluginAccessor pluginAccessor, PluginDirectoryProvider pluginDirectoryProvider, GlobalSettingsManager settingsManager, Counter pluginResourceCounter, LocaleManager localeManager, ContextPathHolder contextPathHolder, I18NBeanFactory i18NBeanFactory, Supplier<com.atlassian.plugin.webresource.cdn.CDNStrategy> cdnStrategySupplier, DarkFeaturesManager confluenceDarkFeaturesManager, com.atlassian.sal.api.features.DarkFeatureManager salDarkFeatureManager, LanguageManager languageManager, com.atlassian.event.api.EventPublisher eventPublisher, com.atlassian.sal.api.ApplicationProperties applicationProperties) 
- 
Method SummaryModifier and TypeMethodDescriptionbooleancom.atlassian.sal.api.ApplicationPropertiesgetBaseUrl(com.atlassian.webresource.api.UrlMode urlMode) Returns the base url of the application for the given url mode.com.atlassian.plugin.webresource.cdn.CDNStrategy@NonNull com.atlassian.sal.api.features.DarkFeatureManager@NonNull com.atlassian.event.api.EventPublishergetI18nRawText(Locale locale, String key) getI18nText(Locale locale, String key) com.atlassian.plugin.PluginAccessorIf the system property for dev mode or disabling caches is set, NOCAHCE prefix is returned.booleanbooleanvoidDeprecated.since 9.1Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.atlassian.plugin.webresource.WebResourceIntegrationgetResourceUrlPrefix, getSyncWebResourceKeys, isCompiledResourceEnabled, usePluginInstallTimeInsteadOfTheVersionForSnapshotPlugins
- 
Field Details- 
NOCACHE_PREFIX- See Also:
 
 
- 
- 
Constructor Details- 
ConfluenceWebResourceIntegrationpublic ConfluenceWebResourceIntegration(com.atlassian.plugin.PluginAccessor pluginAccessor, PluginDirectoryProvider pluginDirectoryProvider, GlobalSettingsManager settingsManager, Counter pluginResourceCounter, LocaleManager localeManager, ContextPathHolder contextPathHolder, I18NBeanFactory i18NBeanFactory, Supplier<com.atlassian.plugin.webresource.cdn.CDNStrategy> cdnStrategySupplier, DarkFeaturesManager confluenceDarkFeaturesManager, com.atlassian.sal.api.features.DarkFeatureManager salDarkFeatureManager, LanguageManager languageManager, com.atlassian.event.api.EventPublisher eventPublisher, com.atlassian.sal.api.ApplicationProperties applicationProperties) - Since:
- 7.14
 
 
- 
- 
Method Details- 
getI18nStateHash- Specified by:
- getI18nStateHashin interface- com.atlassian.plugin.webresource.WebResourceIntegration
 
- 
getPluginAccessorpublic com.atlassian.plugin.PluginAccessor getPluginAccessor()- Specified by:
- getPluginAccessorin interface- com.atlassian.plugin.webresource.WebResourceIntegration
 
- 
getEventPublisherpublic @NonNull com.atlassian.event.api.EventPublisher getEventPublisher()- Specified by:
- getEventPublisherin interface- com.atlassian.plugin.webresource.WebResourceIntegration
 
- 
getDarkFeatureManagerpublic @NonNull com.atlassian.sal.api.features.DarkFeatureManager getDarkFeatureManager()- Specified by:
- getDarkFeatureManagerin interface- com.atlassian.plugin.webresource.WebResourceIntegration
 
- 
getRequestCache- Specified by:
- getRequestCachein interface- com.atlassian.plugin.webresource.WebResourceIntegration
 
- 
rebuildResourceUrlPrefixDeprecated.since 9.1
- 
getSystemCounterIf the system property for dev mode or disabling caches is set, NOCAHCE prefix is returned.If the revision number is available from the Build Information, it will be returned. - Specified by:
- getSystemCounterin interface- com.atlassian.plugin.webresource.WebResourceIntegration
- Returns:
- the revision number from the build information
 
- 
getSystemBuildNumber- Specified by:
- getSystemBuildNumberin interface- com.atlassian.plugin.webresource.WebResourceIntegration
 
- 
getHostApplicationVersion- Specified by:
- getHostApplicationVersionin interface- com.atlassian.plugin.webresource.WebResourceIntegration
 
- 
getBaseUrl- Specified by:
- getBaseUrlin interface- com.atlassian.plugin.webresource.WebResourceIntegration
 
- 
getBaseUrlReturns the base url of the application for the given url mode. ForUrlMode.AUTOthe relative url is returned if found, otherwise will default to returning the absolute url.This method can return null if the base url cannot be determined. - Specified by:
- getBaseUrlin interface- com.atlassian.plugin.webresource.WebResourceIntegration
- Returns:
- the base url of the application for the given url mode
 
- 
getSuperBatchVersion- Specified by:
- getSuperBatchVersionin interface- com.atlassian.plugin.webresource.WebResourceIntegration
 
- 
getTemporaryDirectory- Specified by:
- getTemporaryDirectoryin interface- com.atlassian.plugin.webresource.WebResourceIntegration
 
- 
getCDNStrategypublic com.atlassian.plugin.webresource.cdn.CDNStrategy getCDNStrategy()- Specified by:
- getCDNStrategyin interface- com.atlassian.plugin.webresource.WebResourceIntegration
 
- 
getLocale- Specified by:
- getLocalein interface- com.atlassian.plugin.webresource.WebResourceIntegration
 
- 
getSupportedLocales- Specified by:
- getSupportedLocalesin interface- com.atlassian.plugin.webresource.WebResourceIntegration
 
- 
getI18nRawText- Specified by:
- getI18nRawTextin interface- com.atlassian.plugin.webresource.WebResourceIntegration
 
- 
getI18nText- Specified by:
- getI18nTextin interface- com.atlassian.plugin.webresource.WebResourceIntegration
 
- 
allowedCondition1Keys
- 
allowedTransform1Keys
- 
forbidCondition1AndTransformer1public boolean forbidCondition1AndTransformer1()
- 
isIncrementalCacheEnabledpublic boolean isIncrementalCacheEnabled()- Specified by:
- isIncrementalCacheEnabledin interface- com.atlassian.plugin.webresource.WebResourceIntegration
 
- 
isDeferJsAttributeEnabledpublic boolean isDeferJsAttributeEnabled()- Specified by:
- isDeferJsAttributeEnabledin interface- com.atlassian.plugin.webresource.WebResourceIntegration
 
- 
getApplicationPropertiespublic com.atlassian.sal.api.ApplicationProperties getApplicationProperties()- Specified by:
- getApplicationPropertiesin interface- com.atlassian.plugin.webresource.WebResourceIntegration
 
 
-