Class WebResourceContextItemProvider
java.lang.Object
com.atlassian.confluence.setup.velocity.WebResourceContextItemProvider
- All Implemented Interfaces:
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.
-
Field Summary
-
Constructor Summary
ConstructorDescriptionWebResourceContextItemProvider
(com.atlassian.webresource.api.assembler.PageBuilderService pageBuilderService, com.atlassian.webresource.api.assembler.WebResourceAssemblerFactory webResourceAssemblerFactory, com.atlassian.webresource.api.WebResourceUrlProvider webResourceUrlProvider, ConfluenceWebResourceService confluenceWebResourceService, LocaleManager localeManager) -
Method Summary
-
Field Details
-
STATIC_RESOURCE_URL_PREFIX
- See Also:
-
WEB_RESOURCE_HELPER
- See Also:
-
-
Constructor Details
-
WebResourceContextItemProvider
public WebResourceContextItemProvider(com.atlassian.webresource.api.assembler.PageBuilderService pageBuilderService, com.atlassian.webresource.api.assembler.WebResourceAssemblerFactory webResourceAssemblerFactory, com.atlassian.webresource.api.WebResourceUrlProvider webResourceUrlProvider, ConfluenceWebResourceService confluenceWebResourceService, LocaleManager localeManager)
-
-
Method Details
-
getContextMap
- Specified by:
getContextMap
in interfaceVelocityContextItemProvider
- Returns:
- A map of values to be used within a Velocity
Context
. Must not be null
-