Class ActionContext

java.lang.Object
com.atlassian.confluence.struts.compat2.ActionContext
Direct Known Subclasses:
ActionContext

public class ActionContext extends Object
Wrapper for ActionContext which ensures compatibility with Struts 6.7, specifically the usage of JavaX APIs rather than Jakarta APIs.
Since:
9.3
  • Field Details

    • actualContext

      protected final org.apache.struts2.ActionContext actualContext
  • Constructor Details

    • ActionContext

      protected ActionContext(org.apache.struts2.ActionContext actualContext)
  • Method Details

    • getActualContext

      public org.apache.struts2.ActionContext getActualContext()
    • adapt

      public static ActionContext adapt(org.apache.struts2.ActionContext actualContext)
    • of

      public static ActionContext of(Map<String,Object> context)
    • of

      public static ActionContext of()
    • bind

      public static ActionContext bind(ActionContext actionContext)
    • containsValueStack

      public static boolean containsValueStack(Map<String,Object> context)
    • clear

      public static void clear()
    • getContext

      public static ActionContext getContext()
    • bind

      public ActionContext bind()
    • withActionInvocation

      public ActionContext withActionInvocation(org.apache.struts2.ActionInvocation actionInvocation)
    • getActionInvocation

      public org.apache.struts2.ActionInvocation getActionInvocation()
    • withApplication

      public ActionContext withApplication(Map<String,Object> application)
    • getApplication

      public Map<String,Object> getApplication()
    • getContextMap

      public Map<String,Object> getContextMap()
    • withConversionErrors

      public ActionContext withConversionErrors(Map<String,com.opensymphony.xwork2.conversion.impl.ConversionData> conversionErrors)
    • getConversionErrors

      public Map<String,com.opensymphony.xwork2.conversion.impl.ConversionData> getConversionErrors()
    • withLocale

      public ActionContext withLocale(Locale locale)
    • getLocale

      public Locale getLocale()
    • withActionName

      public ActionContext withActionName(String actionName)
    • getActionName

      public String getActionName()
    • withParameters

      public ActionContext withParameters(org.apache.struts2.dispatcher.HttpParameters parameters)
    • getParameters

      public org.apache.struts2.dispatcher.HttpParameters getParameters()
    • withSession

      public ActionContext withSession(Map<String,Object> session)
    • getSession

      public Map<String,Object> getSession()
    • withValueStack

      public ActionContext withValueStack(org.apache.struts2.util.ValueStack valueStack)
    • getValueStack

      public org.apache.struts2.util.ValueStack getValueStack()
    • withContainer

      public ActionContext withContainer(com.opensymphony.xwork2.inject.Container container)
    • getContainer

      public com.opensymphony.xwork2.inject.Container getContainer()
    • getInstance

      public <T> T getInstance(Class<T> type)
    • get

      public Object get(String key)
    • put

      public void put(String key, Object value)
    • getServletContext

      public javax.servlet.ServletContext getServletContext()
    • withServletContext

      public ActionContext withServletContext(javax.servlet.ServletContext servletContext)
    • getServletRequest

      public javax.servlet.http.HttpServletRequest getServletRequest()
    • withServletRequest

      public ActionContext withServletRequest(javax.servlet.http.HttpServletRequest request)
    • getServletResponse

      public javax.servlet.http.HttpServletResponse getServletResponse()
    • withServletResponse

      public ActionContext withServletResponse(javax.servlet.http.HttpServletResponse response)
    • getPageContext

      public javax.servlet.jsp.PageContext getPageContext()
    • withPageContext

      public ActionContext withPageContext(javax.servlet.jsp.PageContext pageContext)
    • getActionMapping

      public org.apache.struts2.dispatcher.mapper.ActionMapping getActionMapping()
    • withActionMapping

      public ActionContext withActionMapping(org.apache.struts2.dispatcher.mapper.ActionMapping actionMapping)
    • withExtraContext

      public ActionContext withExtraContext(Map<String,Object> extraContext)
    • with

      public ActionContext with(String key, Object value)