com.atlassian.confluence.setup.velocity
Class VelocityFriendlyWebResourceManager

java.lang.Object
  extended by com.atlassian.confluence.setup.velocity.VelocityFriendlyWebResourceManager

public class VelocityFriendlyWebResourceManager
extends Object

Shim class to allow various now-deprecated methods on the WebResourceManager to be accessed from Velocity, which does not have the luxury of being able to pass in enum constants.


Constructor Summary
VelocityFriendlyWebResourceManager(com.atlassian.plugin.webresource.WebResourceManager webResourceManager, com.atlassian.plugin.webresource.WebResourceUrlProvider webResourceUrlProvider)
           
 
Method Summary
 String getRequiredResources()
           
 String getResourceTags(String moduleCompleteKey)
           
 String getStaticPluginResource(com.atlassian.plugin.ModuleDescriptor<?> moduleDescriptor, String resourceName)
           
 String getStaticPluginResource(String moduleCompleteKey, String resourceName)
           
 String getStaticPluginResourcePrefix(com.atlassian.plugin.ModuleDescriptor<?> moduleDescriptor, String resourceName)
          Deprecated. use #getStaticPluginResource instead
 String getStaticResourcePrefix()
           
 String getStaticResourcePrefix(String resourceCounter)
           
 String getStaticResourcePrefix(String resourceCounter, com.atlassian.plugin.webresource.UrlMode urlMode)
           
 void includeResources(Writer writer)
           
 void requireResource(String moduleCompleteKey)
           
 void requireResource(String moduleCompleteKey, Writer writer)
           
 void requireResourcesForContext(String context)
           
 void setIncludeMode(com.atlassian.plugin.webresource.WebResourceManager.IncludeMode includeMode)
          Deprecated. 
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VelocityFriendlyWebResourceManager

public VelocityFriendlyWebResourceManager(com.atlassian.plugin.webresource.WebResourceManager webResourceManager,
                                          com.atlassian.plugin.webresource.WebResourceUrlProvider webResourceUrlProvider)
Method Detail

requireResource

public void requireResource(String moduleCompleteKey)

requireResourcesForContext

public void requireResourcesForContext(String context)

getStaticResourcePrefix

public String getStaticResourcePrefix(String resourceCounter,
                                      com.atlassian.plugin.webresource.UrlMode urlMode)

includeResources

public void includeResources(Writer writer)

getRequiredResources

public String getRequiredResources()

requireResource

public void requireResource(String moduleCompleteKey,
                            Writer writer)

getResourceTags

public String getResourceTags(String moduleCompleteKey)

getStaticResourcePrefix

public String getStaticResourcePrefix()

getStaticResourcePrefix

public String getStaticResourcePrefix(String resourceCounter)

getStaticPluginResource

public String getStaticPluginResource(String moduleCompleteKey,
                                      String resourceName)

getStaticPluginResource

public String getStaticPluginResource(com.atlassian.plugin.ModuleDescriptor<?> moduleDescriptor,
                                      String resourceName)

getStaticPluginResourcePrefix

@Deprecated
public String getStaticPluginResourcePrefix(com.atlassian.plugin.ModuleDescriptor<?> moduleDescriptor,
                                                       String resourceName)
Deprecated. use #getStaticPluginResource instead


setIncludeMode

@Deprecated
public void setIncludeMode(com.atlassian.plugin.webresource.WebResourceManager.IncludeMode includeMode)
Deprecated. 



Copyright © 2003-2013 Atlassian. All Rights Reserved.