Package com.atlassian.confluence.util
Class RequestCacheThreadLocal
- java.lang.Object
-
- com.atlassian.confluence.util.RequestCacheThreadLocal
-
public class RequestCacheThreadLocal extends Object
Threadlocal for caching objects that must survive the whole HTTP request. The threadlocal is initialised in theRequestCacheThreadLocalFilter
-
-
Field Summary
Fields Modifier and Type Field Description static String
CONTEXT_PATH_KEY
static String
HEADER_MOBILE_APP_REQUEST_KEY
static String
REMOTE_ADDRESS_KEY
static String
REQUEST_ID_KEY
static String
X_FORWARDED_FOR_KEY
-
Constructor Summary
Constructors Constructor Description RequestCacheThreadLocal()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
clearRequestCache()
static String
getContextPath()
static String
getMobileAppRequestHeader()
static String
getRemoteAddress()
static Map
getRequestCache()
static String
getRequestCorrelationId()
static String
getXForwardedFor()
static void
setRequestCache(Map requestCache)
-
-
-
Field Detail
-
REMOTE_ADDRESS_KEY
public static final String REMOTE_ADDRESS_KEY
- See Also:
- Constant Field Values
-
X_FORWARDED_FOR_KEY
public static final String X_FORWARDED_FOR_KEY
- See Also:
- Constant Field Values
-
CONTEXT_PATH_KEY
public static final String CONTEXT_PATH_KEY
- See Also:
- Constant Field Values
-
REQUEST_ID_KEY
public static final String REQUEST_ID_KEY
- See Also:
- Constant Field Values
-
HEADER_MOBILE_APP_REQUEST_KEY
public static final String HEADER_MOBILE_APP_REQUEST_KEY
- See Also:
- Constant Field Values
-
-
Method Detail
-
getRequestCache
public static Map getRequestCache()
-
setRequestCache
public static void setRequestCache(Map requestCache)
-
clearRequestCache
public static void clearRequestCache()
-
getRemoteAddress
public static String getRemoteAddress()
-
getXForwardedFor
public static String getXForwardedFor()
-
getContextPath
public static String getContextPath()
-
getRequestCorrelationId
public static String getRequestCorrelationId()
-
getMobileAppRequestHeader
public static String getMobileAppRequestHeader()
-
-