public class

JiraWebResourceManagerImpl

extends WebResourceManagerImpl
implements JiraWebResourceManager
java.lang.Object
   ↳ com.atlassian.plugin.webresource.WebResourceManagerImpl
     ↳ com.atlassian.jira.plugin.webresource.JiraWebResourceManagerImpl

Class Overview

A simple subclass of WebResourceManagerImpl that allows us to override some of its behaviour

Summary

[Expand]
Inherited Fields
From class com.atlassian.plugin.webresource.WebResourceManagerImpl
Public Constructors
JiraWebResourceManagerImpl(PluginResourceLocator pluginResourceLocator, WebResourceIntegration webResourceIntegration, WebResourceUrlProvider webResourceUrlProvider, ResourceBatchingConfiguration batchingConfiguration)
Public Methods
Map<StringString> getMetadata()
Returns the map of key-value pairs added via putMetadata(String, String).
boolean putMetadata(String key, String value)
Adds key-value String pairs to a map to be rendered later.
[Expand]
Inherited Methods
From class com.atlassian.plugin.webresource.WebResourceManagerImpl
From class java.lang.Object
From interface com.atlassian.jira.plugin.webresource.JiraWebResourceManager
From interface com.atlassian.plugin.webresource.WebResourceManager

Public Constructors

public JiraWebResourceManagerImpl (PluginResourceLocator pluginResourceLocator, WebResourceIntegration webResourceIntegration, WebResourceUrlProvider webResourceUrlProvider, ResourceBatchingConfiguration batchingConfiguration)

Public Methods

public Map<StringString> getMetadata ()

Returns the map of key-value pairs added via putMetadata(String, String).

Prior to v6.4, multiple invocations weren't supported, and only the first call would return metadata. Subsequent calls would return an empty Map. Since v6.4, multiple invocations of this method are supported. Each invocation drains and returns the metadata added since the last invocation.

Returns

public boolean putMetadata (String key, String value)

Adds key-value String pairs to a map to be rendered later.

Parameters
key a unique key to store the value against
value an HTML-safe string
Returns
  • true if metadata added to map successfully