public class BambooWebResourceIntegration extends Object implements com.atlassian.plugin.webresource.WebResourceIntegration
| Constructor and Description |
|---|
BambooWebResourceIntegration(String superBatchVersion) |
| Modifier and Type | Method and Description |
|---|---|
Set<String> |
allowedCondition1Keys() |
Set<String> |
allowedTransform1Keys() |
boolean |
forbidCondition1AndTransformer1() |
AdministrationConfiguration |
getAdministrationConfiguration() |
String |
getBaseUrl()
Returns the base URL for this application.
|
String |
getBaseUrl(com.atlassian.plugin.webresource.UrlMode urlMode)
Returns the base URL for this application in either relative or absolute format, depending on the value of
urlMode. |
com.atlassian.plugin.webresource.cdn.CDNStrategy |
getCDNStrategy() |
@Nullable com.atlassian.sal.api.features.DarkFeatureManager |
getDarkFeatureManager() |
@NotNull com.atlassian.event.api.EventPublisher |
getEventPublisher() |
String |
getHostApplicationVersion() |
@NotNull String |
getI18nRawText(Locale locale,
String s) |
String |
getI18nStateHash() |
String |
getI18nText(Locale locale,
String s) |
Locale |
getLocale() |
com.atlassian.plugin.PluginAccessor |
getPluginAccessor()
Applications must implement this method to get access to the application's PluginAccessor
|
com.atlassian.plugin.event.PluginEventManager |
getPluginEventManager() |
Map<String,Object> |
getRequestCache()
This must be a thread-local cache that will be accessible from both the page, and the decorator
|
String |
getResourceUrlPrefix() |
String |
getStaticResourceLocale() |
String |
getSuperBatchVersion()
Superbatch resource path will contain value returned by
WebResourceIntegration.getSystemCounter(), hence there's no need to
return different value for dev mode or when caches are disabled. |
Iterable<Locale> |
getSupportedLocales() |
String |
getSystemBuildNumber()
Represents the last time the system was updated.
|
File |
getTemporaryDirectory() |
void |
rebuildResourceUrlPrefix() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetBigPipeConfiguration, getSyncWebResourceKeys, getSystemCounter, isCompiledResourceEnabled, isCtCdnMappingEnabled, isDeferJsAttributeEnabled, isIncrementalCacheEnabled, usePluginInstallTimeInsteadOfTheVersionForSnapshotPlugins@Inject public BambooWebResourceIntegration(String superBatchVersion)
public com.atlassian.plugin.PluginAccessor getPluginAccessor()
getPluginAccessor in interface com.atlassian.plugin.webresource.WebResourceIntegrationpublic Map<String,Object> getRequestCache()
getRequestCache in interface com.atlassian.plugin.webresource.WebResourceIntegrationpublic String getResourceUrlPrefix()
getResourceUrlPrefix in interface com.atlassian.plugin.webresource.WebResourceIntegrationpublic void rebuildResourceUrlPrefix()
rebuildResourceUrlPrefix in interface com.atlassian.plugin.webresource.WebResourceIntegrationpublic String getSystemBuildNumber()
getSystemBuildNumber in interface com.atlassian.plugin.webresource.WebResourceIntegrationpublic String getBaseUrl()
In general, the behavior of this method should be equivalent to calling getBaseUrl(com.atlassian.plugin.webresource.UrlMode) with a urlMode value of UrlMode.AUTO.
getBaseUrl in interface com.atlassian.plugin.webresource.WebResourceIntegrationpublic String getBaseUrl(com.atlassian.plugin.webresource.UrlMode urlMode)
urlMode.
If urlMode == {@link UrlMode#ABSOLUTE}, this method returns an absolute URL, with URL scheme, hostname, port (if non-standard for the scheme), and context path.
If {@code urlMode == {@link UrlMode#RELATIVE}, this method returns a relative URL containing just the context path.
If {@code urlMode == {@link UrlMode#AUTO}, this method may return either an absolute or a relative URL. Implementations are free to determine which mode to use based on any criteria of their choosing. For example, an implementation may choose to return a relative URL if it detects that it is running in the context of an HTTP request, and an absolute URL if it detects that it is not. Or it may choose to always return an absolute URL, or always return a relative URL. Callers should only use {@code WebResourceManager.UrlMode#AUTO} when they are sure that either an absolute or a relative URL will be appropriate, and should not rely on any particular observed behavior regarding how this value is interpreted, which may vary across different implementations.
getBaseUrl in interface com.atlassian.plugin.webresource.WebResourceIntegrationurlMode - specifies whether to use absolute URLs, relative URLs, or allow the concrete implementation to
decidepublic String getSuperBatchVersion()
WebResourceIntegration.getSystemCounter(), hence there's no need to
return different value for dev mode or when caches are disabled.getSuperBatchVersion in interface com.atlassian.plugin.webresource.WebResourceIntegrationpublic File getTemporaryDirectory()
getTemporaryDirectory in interface com.atlassian.plugin.webresource.WebResourceIntegrationpublic Set<String> allowedCondition1Keys()
allowedCondition1Keys in interface com.atlassian.plugin.webresource.WebResourceIntegrationpublic Set<String> allowedTransform1Keys()
allowedTransform1Keys in interface com.atlassian.plugin.webresource.WebResourceIntegrationpublic boolean forbidCondition1AndTransformer1()
forbidCondition1AndTransformer1 in interface com.atlassian.plugin.webresource.WebResourceIntegrationpublic AdministrationConfiguration getAdministrationConfiguration()
public String getStaticResourceLocale()
getStaticResourceLocale in interface com.atlassian.plugin.webresource.WebResourceIntegrationpublic com.atlassian.plugin.webresource.cdn.CDNStrategy getCDNStrategy()
getCDNStrategy in interface com.atlassian.plugin.webresource.WebResourceIntegrationpublic Locale getLocale()
getLocale in interface com.atlassian.plugin.webresource.WebResourceIntegration@NotNull public @NotNull String getI18nRawText(Locale locale, String s)
getI18nRawText in interface com.atlassian.plugin.webresource.WebResourceIntegrationpublic String getI18nText(Locale locale, String s)
getI18nText in interface com.atlassian.plugin.webresource.WebResourceIntegrationpublic com.atlassian.plugin.event.PluginEventManager getPluginEventManager()
getPluginEventManager in interface com.atlassian.plugin.webresource.WebResourceIntegrationpublic String getHostApplicationVersion()
getHostApplicationVersion in interface com.atlassian.plugin.webresource.WebResourceIntegrationpublic String getI18nStateHash()
getI18nStateHash in interface com.atlassian.plugin.webresource.WebResourceIntegrationpublic Iterable<Locale> getSupportedLocales()
getSupportedLocales in interface com.atlassian.plugin.webresource.WebResourceIntegration@NotNull public @NotNull com.atlassian.event.api.EventPublisher getEventPublisher()
getEventPublisher in interface com.atlassian.plugin.webresource.WebResourceIntegration@Nullable public @Nullable com.atlassian.sal.api.features.DarkFeatureManager getDarkFeatureManager()
getDarkFeatureManager in interface com.atlassian.plugin.webresource.WebResourceIntegrationCopyright © 2025 Atlassian Software Systems Pty Ltd. All rights reserved.