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) |
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() |
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)
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()
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
Copyright © 2003–2015 Atlassian. All rights reserved.