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,
CssResourceCounterManager cssResourceCounterManager,
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.atlassian.cache.CacheFactory cacheFactory,
com.google.common.base.Supplier<DarkFeaturesManager> darkFeaturesManagerSupplier) |
Modifier and Type | Method and Description |
---|---|
String |
getBaseUrl() |
String |
getBaseUrl(com.atlassian.plugin.webresource.UrlMode urlMode)
Returns the base url of the application for the given url mode.
|
com.atlassian.cache.CacheFactory |
getCacheFactory() |
com.atlassian.plugin.webresource.cdn.CDNStrategy |
getCDNStrategy() |
String |
getI18nRawText(Locale locale,
String key) |
String |
getI18nText(Locale locale,
String key) |
Locale |
getLocale() |
com.atlassian.plugin.PluginAccessor |
getPluginAccessor() |
com.atlassian.plugin.event.PluginEventManager |
getPluginEventManager() |
Map<String,Object> |
getRequestCache() |
String |
getStaticResourceLocale() |
String |
getSuperBatchVersion() |
String |
getSystemBuildNumber() |
String |
getSystemCounter()
If the system property for dev mode or disabling caches is set, NOCAHCE prefix is returned.
|
File |
getTemporaryDirectory() |
boolean |
isDeferJsAttributeEnabled() |
public static final String NOCACHE_PREFIX
public ConfluenceWebResourceIntegration(com.atlassian.plugin.PluginAccessor pluginAccessor, PluginDirectoryProvider pluginDirectoryProvider, SettingsManager settingsManager, CssResourceCounterManager cssResourceCounterManager, 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.atlassian.cache.CacheFactory cacheFactory, com.google.common.base.Supplier<DarkFeaturesManager> darkFeaturesManagerSupplier)
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 com.atlassian.cache.CacheFactory getCacheFactory()
getCacheFactory
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 included in the system counter with the global css resouce counter.
getSystemCounter
in interface com.atlassian.plugin.webresource.WebResourceIntegration
public String getSystemBuildNumber()
getSystemBuildNumber
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 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 boolean isDeferJsAttributeEnabled()
isDeferJsAttributeEnabled
in interface com.atlassian.plugin.webresource.WebResourceIntegration
Copyright © 2003–2016 Atlassian. All rights reserved.