Class WebResourceContextItemProvider
- java.lang.Object
-
- com.atlassian.confluence.setup.velocity.WebResourceContextItemProvider
-
- All Implemented Interfaces:
VelocityContextItemProvider
public class WebResourceContextItemProvider extends Object implements VelocityContextItemProvider
Context map provider for information from the WebResourceManager and its kin. Since the WebResourceManager was refactored to take UrlModes in its important methods (and it's impossible to pass such a beast in from Velocity), all references to the manager from Velocity ended up being deprecated calls.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.atlassian.confluence.setup.velocity.VelocityContextItemProvider
VelocityContextItemProvider.VelocityContextItemKeys
-
-
Field Summary
Fields Modifier and Type Field Description static String
STATIC_RESOURCE_URL_PREFIX
static String
WEB_RESOURCE_HELPER
-
Constructor Summary
Constructors Constructor Description WebResourceContextItemProvider(com.atlassian.webresource.api.assembler.PageBuilderService pageBuilderService, com.atlassian.webresource.api.assembler.WebResourceAssemblerFactory webResourceAssemblerFactory, com.atlassian.plugin.webresource.WebResourceUrlProvider webResourceUrlProvider, ConfluenceWebResourceService confluenceWebResourceService, LocaleManager localeManager)
-
-
-
Field Detail
-
STATIC_RESOURCE_URL_PREFIX
public static final String STATIC_RESOURCE_URL_PREFIX
- See Also:
- Constant Field Values
-
WEB_RESOURCE_HELPER
public static final String WEB_RESOURCE_HELPER
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
WebResourceContextItemProvider
public WebResourceContextItemProvider(com.atlassian.webresource.api.assembler.PageBuilderService pageBuilderService, com.atlassian.webresource.api.assembler.WebResourceAssemblerFactory webResourceAssemblerFactory, com.atlassian.plugin.webresource.WebResourceUrlProvider webResourceUrlProvider, ConfluenceWebResourceService confluenceWebResourceService, LocaleManager localeManager)
-
-
Method Detail
-
getContextMap
public @NonNull Map<String,Object> getContextMap()
- Specified by:
getContextMap
in interfaceVelocityContextItemProvider
- Returns:
- A map of values to be used within a Velocity
Context
. Must not be null
-
-