public class

CacheableContextProviderDecorator

extends Object
implements ContextProvider
java.lang.Object
   ↳ com.atlassian.jira.plugin.webfragment.CacheableContextProviderDecorator

Class Overview

Decorator for 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 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.

Summary

Public Constructors
CacheableContextProviderDecorator(CacheableContextProvider contextProvider)
Public Methods
Map<StringObject> getContextMap(Map<StringObject> context)
void init(Map<StringString> params)
Protected Methods
HttpServletRequest getRequest(Map<StringObject> context)
Method that retrieves the HttpServletRequest by the numerous methods that JIRA uses.
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.atlassian.plugin.web.ContextProvider

Public Constructors

public CacheableContextProviderDecorator (CacheableContextProvider contextProvider)

Public Methods

public Map<StringObject> getContextMap (Map<StringObject> context)

public void init (Map<StringString> params)

Protected Methods

protected HttpServletRequest getRequest (Map<StringObject> context)

Method that retrieves the HttpServletRequest by the numerous methods that JIRA uses. It tries to get it from: the context passed in (jirahelper or request), then from ExecutingHttpRequest, and then from the ActionContext

Parameters
context the context passed into the getContextMap method.
Returns
  • the current request.