|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.jira.action.ActionContextKit
public class ActionContextKit
A helper class to clean up the viral ActionContext
thread locals
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |