com.atlassian.confluence.setup.velocity
Class WebResourceContextItemProvider

java.lang.Object
  extended by 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.


Field Summary
static String STATIC_RESOURCE_URL_PREFIX
           
static String WEB_RESOURCE_HELPER
           
 
Constructor Summary
WebResourceContextItemProvider(com.atlassian.plugin.webresource.WebResourceUrlProvider webResourceUrlProvider, com.atlassian.plugin.webresource.WebResourceManager webResourceManager)
           
 
Method Summary
 Map<String,Object> getContextMap()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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.plugin.webresource.WebResourceUrlProvider webResourceUrlProvider,
                                      com.atlassian.plugin.webresource.WebResourceManager webResourceManager)
Method Detail

getContextMap

public Map<String,Object> getContextMap()
Specified by:
getContextMap in interface VelocityContextItemProvider
Returns:
A map of values to be used within a Velocity Context. Must not be null


Copyright © 2003-2013 Atlassian. All Rights Reserved.