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 Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionConfluenceWebResourceIntegration
(com.atlassian.plugin.PluginAccessor pluginAccessor, PluginDirectoryProvider pluginDirectoryProvider, SettingsManager settingsManager, Counter pluginResourceCounter, LocaleManager localeManager, ContextPathHolder contextPathHolder, I18NBeanFactory i18NBeanFactory, Supplier<com.atlassian.plugin.webresource.cdn.CDNStrategy> cdnStrategySupplier, com.atlassian.plugin.event.PluginEventManager pluginEventManager, DarkFeaturesManager confluenceDarkFeaturesManager, com.atlassian.sal.api.features.DarkFeatureManager salDarkFeatureManager, LanguageManager languageManager, com.atlassian.event.api.EventPublisher eventPublisher, com.atlassian.sal.api.ApplicationProperties applicationProperties) -
Method Summary
Modifier and TypeMethodDescriptionboolean
com.atlassian.sal.api.ApplicationProperties
getBaseUrl
(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.EventPublisher
getI18nRawText
(Locale locale, String key) getI18nText
(Locale locale, String key) com.atlassian.plugin.PluginAccessor
com.atlassian.plugin.event.PluginEventManager
Deprecated.since 9.1Deprecated.since 9.1If the system property for dev mode or disabling caches is set, NOCAHCE prefix is returned.boolean
boolean
void
Deprecated.since 9.1Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.atlassian.plugin.webresource.WebResourceIntegration
getResourceUrlPrefix, getSyncWebResourceKeys, isCompiledResourceEnabled, usePluginInstallTimeInsteadOfTheVersionForSnapshotPlugins
-
Field Details
-
NOCACHE_PREFIX
- See Also:
-
-
Constructor Details
-
ConfluenceWebResourceIntegration
public ConfluenceWebResourceIntegration(com.atlassian.plugin.PluginAccessor pluginAccessor, PluginDirectoryProvider pluginDirectoryProvider, SettingsManager settingsManager, Counter pluginResourceCounter, LocaleManager localeManager, ContextPathHolder contextPathHolder, I18NBeanFactory i18NBeanFactory, Supplier<com.atlassian.plugin.webresource.cdn.CDNStrategy> cdnStrategySupplier, com.atlassian.plugin.event.PluginEventManager pluginEventManager, 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
-
getStaticResourceLocale
Deprecated.since 9.1 -
getI18nStateHash
- Specified by:
getI18nStateHash
in interfacecom.atlassian.plugin.webresource.WebResourceIntegration
-
getPluginAccessor
public com.atlassian.plugin.PluginAccessor getPluginAccessor()- Specified by:
getPluginAccessor
in interfacecom.atlassian.plugin.webresource.WebResourceIntegration
-
getPluginEventManager
Deprecated.since 9.1 -
getEventPublisher
public @NonNull com.atlassian.event.api.EventPublisher getEventPublisher()- Specified by:
getEventPublisher
in interfacecom.atlassian.plugin.webresource.WebResourceIntegration
-
getDarkFeatureManager
public @NonNull com.atlassian.sal.api.features.DarkFeatureManager getDarkFeatureManager()- Specified by:
getDarkFeatureManager
in interfacecom.atlassian.plugin.webresource.WebResourceIntegration
-
getRequestCache
- Specified by:
getRequestCache
in interfacecom.atlassian.plugin.webresource.WebResourceIntegration
-
rebuildResourceUrlPrefix
Deprecated.since 9.1 -
getSystemCounter
If 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:
getSystemCounter
in interfacecom.atlassian.plugin.webresource.WebResourceIntegration
- Returns:
- the revision number from the build information
-
getSystemBuildNumber
- Specified by:
getSystemBuildNumber
in interfacecom.atlassian.plugin.webresource.WebResourceIntegration
-
getHostApplicationVersion
- Specified by:
getHostApplicationVersion
in interfacecom.atlassian.plugin.webresource.WebResourceIntegration
-
getBaseUrl
- Specified by:
getBaseUrl
in interfacecom.atlassian.plugin.webresource.WebResourceIntegration
-
getBaseUrl
Returns the base url of the application for the given url mode. ForUrlMode.AUTO
the 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:
getBaseUrl
in interfacecom.atlassian.plugin.webresource.WebResourceIntegration
- Returns:
- the base url of the application for the given url mode
-
getSuperBatchVersion
- Specified by:
getSuperBatchVersion
in interfacecom.atlassian.plugin.webresource.WebResourceIntegration
-
getTemporaryDirectory
- Specified by:
getTemporaryDirectory
in interfacecom.atlassian.plugin.webresource.WebResourceIntegration
-
getCDNStrategy
public com.atlassian.plugin.webresource.cdn.CDNStrategy getCDNStrategy()- Specified by:
getCDNStrategy
in interfacecom.atlassian.plugin.webresource.WebResourceIntegration
-
getLocale
- Specified by:
getLocale
in interfacecom.atlassian.plugin.webresource.WebResourceIntegration
-
getSupportedLocales
- Specified by:
getSupportedLocales
in interfacecom.atlassian.plugin.webresource.WebResourceIntegration
-
getI18nRawText
- Specified by:
getI18nRawText
in interfacecom.atlassian.plugin.webresource.WebResourceIntegration
-
getI18nText
- Specified by:
getI18nText
in interfacecom.atlassian.plugin.webresource.WebResourceIntegration
-
allowedCondition1Keys
-
allowedTransform1Keys
-
forbidCondition1AndTransformer1
public boolean forbidCondition1AndTransformer1() -
isIncrementalCacheEnabled
public boolean isIncrementalCacheEnabled()- Specified by:
isIncrementalCacheEnabled
in interfacecom.atlassian.plugin.webresource.WebResourceIntegration
-
isDeferJsAttributeEnabled
public boolean isDeferJsAttributeEnabled()- Specified by:
isDeferJsAttributeEnabled
in interfacecom.atlassian.plugin.webresource.WebResourceIntegration
-
getApplicationProperties
public com.atlassian.sal.api.ApplicationProperties getApplicationProperties()- Specified by:
getApplicationProperties
in interfacecom.atlassian.plugin.webresource.WebResourceIntegration
-