public class CacheableContextProviderDecorator extends Object implements com.atlassian.plugin.web.ContextProvider
CacheableContextProvider
instances that stores the result of a getContextMap(java.util.Map)
invocation in a request attribute. The uniqueness of the cache key is given by CacheableContextProvider.getUniqueContextKey(java.util.Map)
,
since it is possible for multiple getContextMap(java.util.Map)
invocations to be made in the same request with
different contexts.Constructor and Description |
---|
CacheableContextProviderDecorator(CacheableContextProvider contextProvider) |
Modifier and Type | Method and Description |
---|---|
Map<String,Object> |
getContextMap(Map<String,Object> context) |
protected javax.servlet.http.HttpServletRequest |
getRequest(Map<String,Object> context)
Method that retrieves the HttpServletRequest by the numerous methods that JIRA uses.
|
void |
init(Map<String,String> params) |
public CacheableContextProviderDecorator(CacheableContextProvider contextProvider)
public Map<String,Object> getContextMap(Map<String,Object> context)
getContextMap
in interface com.atlassian.plugin.web.ContextProvider
public void init(Map<String,String> params) throws com.atlassian.plugin.PluginParseException
init
in interface com.atlassian.plugin.web.ContextProvider
com.atlassian.plugin.PluginParseException
protected javax.servlet.http.HttpServletRequest getRequest(Map<String,Object> context)
context
- the context passed into the getContextMap method.Copyright © 2002-2022 Atlassian. All Rights Reserved.