public interface

PluginResource

com.atlassian.plugin.webresource.PluginResource
Known Indirect Subclasses

Class Overview

Represents a plugin resource.

Summary

Public Methods
abstract String getModuleCompleteKey()
abstract Map<StringString> getParams()
abstract String getResourceName()
abstract String getUrl()
abstract String getVersion(WebResourceIntegration integration)
abstract boolean isCacheSupported()

Public Methods

public abstract String getModuleCompleteKey ()

Returns
  • the plugin module's complete key for which this resource belongs to.

public abstract Map<StringString> getParams ()

Returns
  • a map of parameter key and value pairs for this resource.

public abstract String getResourceName ()

Returns
  • the resource name for the plugin resource.

public abstract String getUrl ()

Returns
  • the url for this plugin resource.

public abstract String getVersion (WebResourceIntegration integration)

Returns
  • the version prefix string for a cached resource

public abstract 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.