public class

ActionContextKit

extends Object
java.lang.Object
   ↳ com.atlassian.jira.action.ActionContextKit

Class Overview

A helper class to clean up the viral webwork.action.ActionContext thread locals

Summary

Public Methods
static void resetContext()
This will reset the current webwork.action.ActionContext ThreadLocal to be a clean slate eg with no references to any Http objects such as request, sessions or responses.
static void setContext(HttpServletRequest httpServletRequest, HttpServletResponse httpServletResponse, ServletContext servletContext, String actionName)
This sets up the webwork.action.ActionContext inside JIRA.
static void setContext(HttpServletRequest httpServletRequest, HttpServletResponse httpServletResponse, ServletContext servletContext)
This sets up the webwork.action.ActionContext inside JIRA.
static void setContext(HttpServletRequest httpServletRequest, HttpServletResponse httpServletResponse, String actionName)
This sets up the webwork.action.ActionContext inside JIRA.
[Expand]
Inherited Methods
From class java.lang.Object

Public Methods

public static void resetContext ()

This will reset the current webwork.action.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

public static void setContext (HttpServletRequest httpServletRequest, HttpServletResponse httpServletResponse, ServletContext servletContext, String actionName)

This sets up the webwork.action.ActionContext inside JIRA. Make sure you have a strategy in clearing this ActionContext via resetContext()

Parameters
httpServletRequest the request in play
httpServletResponse the response in play
servletContext the servlet context in play
actionName the current action name to run

public static void setContext (HttpServletRequest httpServletRequest, HttpServletResponse httpServletResponse, ServletContext servletContext)

This sets up the webwork.action.ActionContext inside JIRA. Make sure you have a strategy in clearing this ActionContext via resetContext()

Parameters
httpServletRequest the request in play
httpServletResponse the response in play
servletContext the servlet context in play

public static void setContext (HttpServletRequest httpServletRequest, HttpServletResponse httpServletResponse, String actionName)

This sets up the webwork.action.ActionContext inside JIRA. Make sure you have a strategy in clearing this ActionContext via resetContext()

Parameters
httpServletRequest the request in play
httpServletResponse the response in play
actionName the current action name to run