public class JiraWebResourceManagerImpl extends com.atlassian.plugin.webresource.WebResourceManagerImpl implements JiraWebResourceManager
| Constructor and Description |
|---|
JiraWebResourceManagerImpl(com.atlassian.plugin.webresource.PluginResourceLocator pluginResourceLocator,
com.atlassian.plugin.webresource.WebResourceIntegration webResourceIntegration,
com.atlassian.plugin.webresource.WebResourceUrlProvider webResourceUrlProvider,
com.atlassian.plugin.webresource.ResourceBatchingConfiguration batchingConfiguration) |
| Modifier and Type | Method and Description |
|---|---|
Map<String,String> |
getMetadata()
Returns the map of key-value pairs added via
JiraWebResourceManager.putMetadata(String, String). |
boolean |
putMetadata(String key,
String value)
Adds key-value String pairs to a map to be rendered later.
|
executeInNewContext, getRequestLocalAssembledResources, getRequestLocalRequiredResources, getRequiredResources, getRequiredResources, getRequiredResources, getRequiredResources, getResourceTags, getResourceTags, getStaticPluginResource, getStaticPluginResource, getStaticPluginResource, getStaticPluginResource, getStaticResourcePrefix, getStaticResourcePrefix, includeResources, includeResources, includeResources, includeResources, requireResource, requireResource, requireResource, requireResourcesForContextclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitexecuteInNewContext, getRequiredResources, getRequiredResources, getRequiredResources, getResourceTags, getResourceTags, getStaticPluginResource, getStaticPluginResource, getStaticPluginResource, getStaticPluginResource, getStaticResourcePrefix, getStaticResourcePrefix, includeResources, includeResources, includeResources, includeResources, requireResource, requireResource, requireResource, requireResourcesForContextpublic JiraWebResourceManagerImpl(com.atlassian.plugin.webresource.PluginResourceLocator pluginResourceLocator,
com.atlassian.plugin.webresource.WebResourceIntegration webResourceIntegration,
com.atlassian.plugin.webresource.WebResourceUrlProvider webResourceUrlProvider,
com.atlassian.plugin.webresource.ResourceBatchingConfiguration batchingConfiguration)
public boolean putMetadata(String key, String value)
JiraWebResourceManagerputMetadata in interface JiraWebResourceManagerkey - a unique key to store the value againstvalue - an HTML-safe stringpublic Map<String,String> getMetadata()
JiraWebResourceManagerJiraWebResourceManager.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.
getMetadata in interface JiraWebResourceManagerJiraWebResourceManager.putMetadata(String, String).Copyright © 2002-2022 Atlassian. All Rights Reserved.