|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.plugin.webresource.WebResourceManagerImpl com.atlassian.jira.plugin.webresource.JiraWebResourceManagerImpl
public class JiraWebResourceManagerImpl
A simple subclass of WebResourceManagerImpl that allows us to override some of its behaviour
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface com.atlassian.plugin.webresource.WebResourceManager |
---|
com.atlassian.plugin.webresource.WebResourceManager.IncludeMode |
Field Summary |
---|
Fields inherited from class com.atlassian.plugin.webresource.WebResourceManagerImpl |
---|
batchingConfiguration, dependencyResolver, pluginResourceLocator, webResourceFormatters, webResourceIntegration |
Fields inherited from interface com.atlassian.plugin.webresource.WebResourceManager |
---|
DELAYED_INCLUDE_MODE, INLINE_INCLUDE_MODE |
Constructor Summary | |
---|---|
JiraWebResourceManagerImpl(ApplicationProperties appProps,
com.atlassian.plugin.webresource.PluginResourceLocator pluginResourceLocator,
com.atlassian.plugin.webresource.WebResourceIntegration webResourceIntegration,
com.atlassian.plugin.webresource.WebResourceUrlProvider webResourceUrlProvider,
com.atlassian.plugin.webresource.ResourceBatchingConfiguration batchingConfiguration)
|
Method Summary | |
---|---|
Map<String,String> |
getMetadata()
Returns the map of key-value pairs added via JiraWebResourceManager.putMetadata(String, String) . |
String |
getStaticResourcePrefix(String resourceCounter,
com.atlassian.plugin.webresource.UrlMode urlMode)
|
String |
getStaticResourcePrefix(com.atlassian.plugin.webresource.UrlMode urlMode)
|
boolean |
putMetadata(String key,
String value)
Adds key-value String pairs to a map to be rendered later. |
Methods inherited from class com.atlassian.plugin.webresource.WebResourceManagerImpl |
---|
executeInNewContext, getRequiredResources, getRequiredResources, getRequiredResources, getResourceTags, getResourceTags, getStaticPluginResource, getStaticPluginResource, getStaticPluginResource, getStaticPluginResource, getStaticPluginResourcePrefix, getStaticResourcePrefix, getStaticResourcePrefix, includeResources, includeResources, includeResources, includeResources, requireResource, requireResource, requireResource, requireResourcesForContext, setIncludeMode |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.atlassian.plugin.webresource.WebResourceManager |
---|
executeInNewContext, getRequiredResources, getRequiredResources, getRequiredResources, getResourceTags, getResourceTags, getStaticPluginResource, getStaticPluginResource, getStaticPluginResource, getStaticPluginResource, getStaticPluginResourcePrefix, getStaticResourcePrefix, getStaticResourcePrefix, includeResources, includeResources, includeResources, includeResources, requireResource, requireResource, requireResource, requireResourcesForContext, setIncludeMode |
Constructor Detail |
---|
public JiraWebResourceManagerImpl(ApplicationProperties appProps, com.atlassian.plugin.webresource.PluginResourceLocator pluginResourceLocator, com.atlassian.plugin.webresource.WebResourceIntegration webResourceIntegration, com.atlassian.plugin.webresource.WebResourceUrlProvider webResourceUrlProvider, com.atlassian.plugin.webresource.ResourceBatchingConfiguration batchingConfiguration)
Method Detail |
---|
public String getStaticResourcePrefix(String resourceCounter, com.atlassian.plugin.webresource.UrlMode urlMode)
getStaticResourcePrefix
in interface com.atlassian.plugin.webresource.WebResourceManager
getStaticResourcePrefix
in class com.atlassian.plugin.webresource.WebResourceManagerImpl
public String getStaticResourcePrefix(com.atlassian.plugin.webresource.UrlMode urlMode)
getStaticResourcePrefix
in interface com.atlassian.plugin.webresource.WebResourceManager
getStaticResourcePrefix
in class com.atlassian.plugin.webresource.WebResourceManagerImpl
public boolean putMetadata(String key, String value)
JiraWebResourceManager
putMetadata
in interface JiraWebResourceManager
key
- a unique key to store the value againstvalue
- an HTML-safe string
public Map<String,String> getMetadata()
JiraWebResourceManager
JiraWebResourceManager.putMetadata(String, String)
.
Should return an empty map and log a warning if called more than once in a request.
getMetadata
in interface JiraWebResourceManager
JiraWebResourceManager.putMetadata(String, String)
.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |