public class

SinglePluginResource

extends Object
implements PluginResource
java.lang.Object
   ↳ com.atlassian.plugin.webresource.SinglePluginResource

Class Overview

Represents a single plugin resource. It provides methods to parse and generate urls to locate a single plugin resource. Note: This PluginResource does not use it's parameters in generating the url.

Summary

Public Constructors
SinglePluginResource(String resourceName, String moduleCompleteKey, boolean cached)
SinglePluginResource(String resourceName, String moduleCompleteKey, boolean cached, Map<StringString> params)
Public Methods
String getModuleCompleteKey()
Map<StringString> getParams()
String getResourceName()
String getUrl()
Returns a url string in the format: /download/resources/MODULE_COMPLETE_KEY/RESOURCE_NAME e.g.
String getVersion(WebResourceIntegration integration)
boolean isCacheSupported()
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.atlassian.plugin.webresource.PluginResource

Public Constructors

public SinglePluginResource (String resourceName, String moduleCompleteKey, boolean cached)

public SinglePluginResource (String resourceName, String moduleCompleteKey, boolean cached, Map<StringString> params)

Public Methods

public String getModuleCompleteKey ()

public Map<StringString> getParams ()

public String getResourceName ()

public String getUrl ()

Returns a url string in the format: /download/resources/MODULE_COMPLETE_KEY/RESOURCE_NAME e.g. /download/resources/example.plugin:webresources/foo.css

public String getVersion (WebResourceIntegration integration)

public boolean isCacheSupported ()