Class JiraWebResourceManagerImpl
java.lang.Object
com.atlassian.jira.plugin.webresource.JiraWebResourceManagerImpl
- All Implemented Interfaces:
JiraWebResourceManager,com.atlassian.webresource.api.WebResourceManager
public class JiraWebResourceManagerImpl
extends Object
implements JiraWebResourceManager, com.atlassian.webresource.api.WebResourceManager
A simple subclass of WebResourceManagerImpl that allows us to override
some of its behaviour
- Since:
- v4.4
-
Constructor Summary
ConstructorsConstructorDescriptionJiraWebResourceManagerImpl(JiraPluginResourceLocator pluginResourceLocator, com.atlassian.plugin.webresource.WebResourceIntegration webResourceIntegration, com.atlassian.webresource.api.WebResourceUrlProvider webResourceUrlProvider, com.atlassian.plugin.webresource.ResourceBatchingConfiguration batchingConfiguration) -
Method Summary
Modifier and TypeMethodDescriptionReturns the map of key-value pairs added viaJiraWebResourceManager.putMetadata(String, String).getRequiredResources(com.atlassian.webresource.api.UrlMode urlMode) getRequiredResources(com.atlassian.webresource.api.UrlMode urlMode, com.atlassian.webresource.api.WebResourceFilter webResourceFilter) getResourceTags(String s, com.atlassian.webresource.api.UrlMode urlMode) voidincludeResources(Writer writer, com.atlassian.webresource.api.UrlMode urlMode) voidincludeResources(Writer writer, com.atlassian.webresource.api.UrlMode urlMode, com.atlassian.webresource.api.WebResourceFilter webResourceFilter) voidincludeResources(Iterable<String> iterable, Writer writer, com.atlassian.webresource.api.UrlMode urlMode) booleanputMetadata(String key, String value) Adds key-value String pairs to a map to be rendered later.voidvoidrequireResource(String s, Writer writer, com.atlassian.webresource.api.UrlMode urlMode) void
-
Constructor Details
-
JiraWebResourceManagerImpl
public JiraWebResourceManagerImpl(JiraPluginResourceLocator pluginResourceLocator, com.atlassian.plugin.webresource.WebResourceIntegration webResourceIntegration, com.atlassian.webresource.api.WebResourceUrlProvider webResourceUrlProvider, com.atlassian.plugin.webresource.ResourceBatchingConfiguration batchingConfiguration)
-
-
Method Details
-
putMetadata
Description copied from interface:JiraWebResourceManagerAdds key-value String pairs to a map to be rendered later.- Specified by:
putMetadatain interfaceJiraWebResourceManager- Parameters:
key- a unique key to store the value againstvalue- an HTML-safe string- Returns:
- true if metadata added to map successfully
-
getMetadata
Description copied from interface:JiraWebResourceManagerReturns the map of key-value pairs added viaJiraWebResourceManager.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.
- Specified by:
getMetadatain interfaceJiraWebResourceManager- Returns:
- the map of key-value pairs added via
JiraWebResourceManager.putMetadata(String, String).
-
requireResource
- Specified by:
requireResourcein interfacecom.atlassian.webresource.api.WebResourceManager
-
includeResources
public void includeResources(Iterable<String> iterable, Writer writer, com.atlassian.webresource.api.UrlMode urlMode) - Specified by:
includeResourcesin interfacecom.atlassian.webresource.api.WebResourceManager
-
includeResources
- Specified by:
includeResourcesin interfacecom.atlassian.webresource.api.WebResourceManager
-
includeResources
public void includeResources(Writer writer, com.atlassian.webresource.api.UrlMode urlMode, com.atlassian.webresource.api.WebResourceFilter webResourceFilter) - Specified by:
includeResourcesin interfacecom.atlassian.webresource.api.WebResourceManager
-
getRequiredResources
- Specified by:
getRequiredResourcesin interfacecom.atlassian.webresource.api.WebResourceManager
-
getRequiredResources
public String getRequiredResources(com.atlassian.webresource.api.UrlMode urlMode, com.atlassian.webresource.api.WebResourceFilter webResourceFilter) - Specified by:
getRequiredResourcesin interfacecom.atlassian.webresource.api.WebResourceManager
-
requireResource
- Specified by:
requireResourcein interfacecom.atlassian.webresource.api.WebResourceManager
-
requireResourcesForContext
- Specified by:
requireResourcesForContextin interfacecom.atlassian.webresource.api.WebResourceManager
-
getResourceTags
- Specified by:
getResourceTagsin interfacecom.atlassian.webresource.api.WebResourceManager
-