Class ActionContext
java.lang.Object
com.atlassian.confluence.struts.compat2.ActionContext
- Direct Known Subclasses:
ActionContext
Wrapper for
ActionContext
which ensures compatibility with Struts 6.7, specifically
the usage of JavaX APIs rather than Jakarta APIs.- Since:
- 9.3
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
ActionContext
(org.apache.struts2.ActionContext actualContext) -
Method Summary
Modifier and TypeMethodDescriptionstatic ActionContext
adapt
(org.apache.struts2.ActionContext actualContext) bind()
static ActionContext
bind
(ActionContext actionContext) static void
clear()
static boolean
containsValueStack
(Map<String, Object> context) org.apache.struts2.ActionInvocation
org.apache.struts2.dispatcher.mapper.ActionMapping
org.apache.struts2.ActionContext
com.opensymphony.xwork2.inject.Container
static ActionContext
<T> T
getInstance
(Class<T> type) javax.servlet.jsp.PageContext
org.apache.struts2.dispatcher.HttpParameters
javax.servlet.ServletContext
javax.servlet.http.HttpServletRequest
javax.servlet.http.HttpServletResponse
org.apache.struts2.util.ValueStack
static ActionContext
of()
static ActionContext
void
withActionInvocation
(org.apache.struts2.ActionInvocation actionInvocation) withActionMapping
(org.apache.struts2.dispatcher.mapper.ActionMapping actionMapping) withActionName
(String actionName) withApplication
(Map<String, Object> application) withContainer
(com.opensymphony.xwork2.inject.Container container) withConversionErrors
(Map<String, com.opensymphony.xwork2.conversion.impl.ConversionData> conversionErrors) withExtraContext
(Map<String, Object> extraContext) withLocale
(Locale locale) withPageContext
(javax.servlet.jsp.PageContext pageContext) withParameters
(org.apache.struts2.dispatcher.HttpParameters parameters) withServletContext
(javax.servlet.ServletContext servletContext) withServletRequest
(javax.servlet.http.HttpServletRequest request) withServletResponse
(javax.servlet.http.HttpServletResponse response) withSession
(Map<String, Object> session) withValueStack
(org.apache.struts2.util.ValueStack valueStack)
-
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
-
of
-
of
-
bind
-
containsValueStack
-
clear
public static void clear() -
getContext
-
bind
-
withActionInvocation
-
getActionInvocation
public org.apache.struts2.ActionInvocation getActionInvocation() -
withApplication
-
getApplication
-
getContextMap
-
withConversionErrors
public ActionContext withConversionErrors(Map<String, com.opensymphony.xwork2.conversion.impl.ConversionData> conversionErrors) -
getConversionErrors
-
withLocale
-
getLocale
-
withActionName
-
getActionName
-
withParameters
-
getParameters
public org.apache.struts2.dispatcher.HttpParameters getParameters() -
withSession
-
getSession
-
withValueStack
-
getValueStack
public org.apache.struts2.util.ValueStack getValueStack() -
withContainer
-
getContainer
public com.opensymphony.xwork2.inject.Container getContainer() -
getInstance
-
get
-
put
-
getServletContext
public javax.servlet.ServletContext getServletContext() -
withServletContext
-
getServletRequest
public javax.servlet.http.HttpServletRequest getServletRequest() -
withServletRequest
-
getServletResponse
public javax.servlet.http.HttpServletResponse getServletResponse() -
withServletResponse
-
getPageContext
public javax.servlet.jsp.PageContext getPageContext() -
withPageContext
-
getActionMapping
public org.apache.struts2.dispatcher.mapper.ActionMapping getActionMapping() -
withActionMapping
public ActionContext withActionMapping(org.apache.struts2.dispatcher.mapper.ActionMapping actionMapping) -
withExtraContext
-
with
-