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
ConstructorsModifierConstructorDescriptionprotectedActionContext(org.apache.struts2.ActionContext actualContext) -
Method Summary
Modifier and TypeMethodDescriptionstatic ActionContextadapt(org.apache.struts2.ActionContext actualContext) bind()static ActionContextbind(ActionContext actionContext) static voidclear()static booleancontainsValueStack(Map<String, Object> context) org.apache.struts2.ActionInvocationorg.apache.struts2.dispatcher.mapper.ActionMappingorg.apache.struts2.ActionContextcom.opensymphony.xwork2.inject.Containerstatic ActionContext<T> TgetInstance(Class<T> type) javax.servlet.jsp.PageContextorg.apache.struts2.dispatcher.HttpParametersjavax.servlet.ServletContextjavax.servlet.http.HttpServletRequestjavax.servlet.http.HttpServletResponseorg.apache.struts2.util.ValueStackstatic ActionContextof()static ActionContextvoidwithActionInvocation(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
-