com.atlassian.plugin.webresource
Interface PluginResource

All Known Implementing Classes:
BatchPluginResource, SinglePluginResource, SuperBatchPluginResource

public interface PluginResource

Represents a plugin resource.

Since:
2.2

Method Summary
 String getModuleCompleteKey()
           
 Map<String,String> getParams()
           
 String getResourceName()
           
 String getUrl()
           
 String getVersion(WebResourceIntegration integration)
           
 boolean isCacheSupported()
           
 

Method Detail

isCacheSupported

boolean isCacheSupported()
Returns:
true if caching for this resource is supported. Use this check to append a static caching url prefix to this resource's url.

getUrl

String getUrl()
Returns:
the url for this plugin resource.

getResourceName

String getResourceName()
Returns:
the resource name for the plugin resource.

getModuleCompleteKey

String getModuleCompleteKey()
Returns:
the plugin module's complete key for which this resource belongs to.

getParams

Map<String,String> getParams()
Returns:
a map of parameter key and value pairs for this resource.

getVersion

String getVersion(WebResourceIntegration integration)
Returns:
the version prefix string for a cached resource


Copyright © 2011 Atlassian. All Rights Reserved.