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(ApplicationProperties appProps, 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 (ApplicationProperties appProps, 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). Should return an empty map and log a warning if called more than once in a request.

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