public class ConfluenceWebResourceIntegration extends Object implements com.atlassian.plugin.webresource.WebResourceIntegration
Modifier and Type | Field and Description |
---|---|
static String |
NOCACHE_PREFIX |
Constructor and Description |
---|
ConfluenceWebResourceIntegration(com.atlassian.plugin.PluginAccessor pluginAccessor,
PluginDirectoryProvider pluginDirectoryProvider,
SettingsManager settingsManager,
Counter pluginResourceCounter,
LocaleManager localeManager,
ContextPathHolder contextPathHolder,
I18NBeanFactory i18NBeanFactory,
com.google.common.base.Supplier<com.atlassian.plugin.webresource.cdn.CDNStrategy> cdnStrategySupplier,
com.atlassian.plugin.event.PluginEventManager pluginEventManager,
com.google.common.base.Supplier<DarkFeaturesManager> darkFeaturesManagerSupplier,
LanguageManager languageManager) |
public static final String NOCACHE_PREFIX
public ConfluenceWebResourceIntegration(com.atlassian.plugin.PluginAccessor pluginAccessor, PluginDirectoryProvider pluginDirectoryProvider, SettingsManager settingsManager, Counter pluginResourceCounter, LocaleManager localeManager, ContextPathHolder contextPathHolder, I18NBeanFactory i18NBeanFactory, com.google.common.base.Supplier<com.atlassian.plugin.webresource.cdn.CDNStrategy> cdnStrategySupplier, com.atlassian.plugin.event.PluginEventManager pluginEventManager, com.google.common.base.Supplier<DarkFeaturesManager> darkFeaturesManagerSupplier, LanguageManager languageManager)
public String getStaticResourceLocale()
getStaticResourceLocale
in interface com.atlassian.plugin.webresource.WebResourceIntegration
public com.atlassian.plugin.PluginAccessor getPluginAccessor()
getPluginAccessor
in interface com.atlassian.plugin.webresource.WebResourceIntegration
public com.atlassian.plugin.event.PluginEventManager getPluginEventManager()
getPluginEventManager
in interface com.atlassian.plugin.webresource.WebResourceIntegration
public Map<String,Object> getRequestCache()
getRequestCache
in interface com.atlassian.plugin.webresource.WebResourceIntegration
public String getSystemCounter()
If the revision number is available from the Build Information, it will be returned.
getSystemCounter
in interface com.atlassian.plugin.webresource.WebResourceIntegration
public String getSystemBuildNumber()
getSystemBuildNumber
in interface com.atlassian.plugin.webresource.WebResourceIntegration
public String getHostApplicationVersion()
getHostApplicationVersion
in interface com.atlassian.plugin.webresource.WebResourceIntegration
public String getBaseUrl()
getBaseUrl
in interface com.atlassian.plugin.webresource.WebResourceIntegration
public String getBaseUrl(com.atlassian.plugin.webresource.UrlMode urlMode)
UrlMode.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.
getBaseUrl
in interface com.atlassian.plugin.webresource.WebResourceIntegration
public String getSuperBatchVersion()
getSuperBatchVersion
in interface com.atlassian.plugin.webresource.WebResourceIntegration
public File getTemporaryDirectory()
getTemporaryDirectory
in interface com.atlassian.plugin.webresource.WebResourceIntegration
public com.atlassian.plugin.webresource.cdn.CDNStrategy getCDNStrategy()
getCDNStrategy
in interface com.atlassian.plugin.webresource.WebResourceIntegration
public Locale getLocale()
getLocale
in interface com.atlassian.plugin.webresource.WebResourceIntegration
public Iterable<Locale> getSupportedLocales()
getSupportedLocales
in interface com.atlassian.plugin.webresource.WebResourceIntegration
public String getI18nRawText(Locale locale, String key)
getI18nRawText
in interface com.atlassian.plugin.webresource.WebResourceIntegration
public String getI18nText(Locale locale, String key)
getI18nText
in interface com.atlassian.plugin.webresource.WebResourceIntegration
public Set<String> allowedCondition1Keys()
allowedCondition1Keys
in interface com.atlassian.plugin.webresource.WebResourceIntegration
public Set<String> allowedTransform1Keys()
allowedTransform1Keys
in interface com.atlassian.plugin.webresource.WebResourceIntegration
public boolean forbidCondition1AndTransformer1()
forbidCondition1AndTransformer1
in interface com.atlassian.plugin.webresource.WebResourceIntegration
public boolean isIncrementalCacheEnabled()
isIncrementalCacheEnabled
in interface com.atlassian.plugin.webresource.WebResourceIntegration
public boolean isDeferJsAttributeEnabled()
isDeferJsAttributeEnabled
in interface com.atlassian.plugin.webresource.WebResourceIntegration
Copyright © 2003–2017 Atlassian. All rights reserved.