public class ActionContextKit extends Object
ActionContext
thread localsModifier and Type | Method and Description |
---|---|
static void |
resetContext()
This will reset the current
ActionContext ThreadLocal to be a clean slate eg with no
references to any Http objects such as request, sessions or responses. |
static void |
setContext(javax.servlet.http.HttpServletRequest httpServletRequest,
javax.servlet.http.HttpServletResponse httpServletResponse,
javax.servlet.ServletContext servletContext)
This sets up the
ActionContext inside JIRA. |
static void |
setContext(javax.servlet.http.HttpServletRequest httpServletRequest,
javax.servlet.http.HttpServletResponse httpServletResponse,
javax.servlet.ServletContext servletContext,
String actionName)
This sets up the
ActionContext inside JIRA. |
static void |
setContext(javax.servlet.http.HttpServletRequest httpServletRequest,
javax.servlet.http.HttpServletResponse httpServletResponse,
String actionName)
This sets up the
ActionContext inside JIRA. |
public static void setContext(javax.servlet.http.HttpServletRequest httpServletRequest, javax.servlet.http.HttpServletResponse httpServletResponse, javax.servlet.ServletContext servletContext)
ActionContext
inside JIRA. Make sure you have a strategy in clearing
this ActionContext via resetContext()
httpServletRequest
- the request in playhttpServletResponse
- the response in playservletContext
- the servlet context in playpublic static void setContext(javax.servlet.http.HttpServletRequest httpServletRequest, javax.servlet.http.HttpServletResponse httpServletResponse, String actionName)
ActionContext
inside JIRA. Make sure you have a strategy in clearing
this ActionContext via resetContext()
httpServletRequest
- the request in playhttpServletResponse
- the response in playactionName
- the current action name to runpublic static void setContext(javax.servlet.http.HttpServletRequest httpServletRequest, javax.servlet.http.HttpServletResponse httpServletResponse, javax.servlet.ServletContext servletContext, String actionName)
ActionContext
inside JIRA. Make sure you have a strategy in clearing
this ActionContext via resetContext()
httpServletRequest
- the request in playhttpServletResponse
- the response in playservletContext
- the servlet context in playactionName
- the current action name to runpublic static void resetContext()
ActionContext
ThreadLocal to be a clean slate eg with no
references to any Http objects such as request, sessions or responses. And calls to getter method will return
null.
This is here to help stop JRA-8009
Copyright © 2002-2024 Atlassian. All Rights Reserved.