Uses of Class
com.opensymphony.xwork2.ActionContext
Packages that use ActionContext
Package
Description
Main XWork interfaces and classes.
Configuration implementation classes.
Interceptor classes.
XWork specific mock classes.
XWork util classes.
This package contains a reimagining of the traditional Struts filter dispatchers.
-
Uses of ActionContext in com.opensymphony.xwork2
Fields in com.opensymphony.xwork2 declared as ActionContextModifier and TypeFieldDescriptionprotected ActionContext
DefaultActionInvocation.invocationContext
Methods in com.opensymphony.xwork2 that return ActionContextModifier and TypeMethodDescriptionActionContext.bind()
Binds this context with the current threadstatic ActionContext
ActionContext.bind
(ActionContext actionContext) Binds the provided context with the current threadstatic ActionContext
ActionContext.getContext()
Returns the ActionContext specific to the current thread.ActionInvocation.getInvocationContext()
Gets the ActionContext associated with this ActionInvocation.DefaultActionInvocation.getInvocationContext()
static ActionContext
ActionContext.of()
Creates a new ActionContext based on empty Mapstatic ActionContext
Creates a new ActionContext based on passed in MapAdds arbitrary key to action contextActionContext.withActionInvocation
(ActionInvocation actionInvocation) Sets the action invocation (the execution state).ActionContext.withActionMapping
(ActionMapping actionMapping) Assigns ActionMapping to action contextActionContext.withActionName
(String actionName) Sets the name of the current Action in the ActionContext.ActionContext.withApplication
(Map<String, Object> application) Sets the action's application context.ActionContext.withContainer
(Container container) Gets the container for this requestActionContext.withConversionErrors
(Map<String, ConversionData> conversionErrors) Sets conversion errors which occurred when executing the action.ActionContext.withExtraContext
(Map<String, Object> extraContext) Assigns an extra context map to action contextActionContext.withLocale
(Locale locale) Sets the Locale for the current action.ActionContext.withPageContext
(jakarta.servlet.jsp.PageContext pageContext) Assigns PageContext to action contextActionContext.withParameters
(HttpParameters parameters) Sets the action parameters.ActionContext.withServletContext
(jakarta.servlet.ServletContext servletContext) Assigns ServletContext to action contextActionContext.withServletRequest
(jakarta.servlet.http.HttpServletRequest request) Assigns ServletRequest to action contextActionContext.withServletResponse
(jakarta.servlet.http.HttpServletResponse response) Assigns ServletResponse to action contextActionContext.withSession
(Map<String, Object> session) Sets a map of action session values.ActionContext.withValueStack
(ValueStack valueStack) Sets the OGNL value stack.Methods in com.opensymphony.xwork2 with parameters of type ActionContextModifier and TypeMethodDescriptionstatic ActionContext
ActionContext.bind
(ActionContext actionContext) Binds the provided context with the current threadDefaultUnknownHandlerManager.handleUnknownResult
(ActionContext actionContext, String actionName, ActionConfig actionConfig, String resultCode) Iterate over UnknownHandlers and return the result of the first one that can handle itUnknownHandler.handleUnknownResult
(ActionContext actionContext, String actionName, ActionConfig actionConfig, String resultCode) Handles the case when a result cannot be found for an action and result code.UnknownHandlerManager.handleUnknownResult
(ActionContext actionContext, String actionName, ActionConfig actionConfig, String resultCode) -
Uses of ActionContext in com.opensymphony.xwork2.config.impl
Methods in com.opensymphony.xwork2.config.impl that return ActionContextModifier and TypeMethodDescriptionprotected ActionContext
DefaultConfiguration.setContext
(Container cont) -
Uses of ActionContext in com.opensymphony.xwork2.conversion.impl
Methods in com.opensymphony.xwork2.conversion.impl with parameters of type ActionContextModifier and TypeMethodDescriptionprotected DateTimeFormatter[]
DateConverter.getDateTimeFormats
(ActionContext context, Locale locale) Retrieves the list of date time formats to be used when converting datesprotected String
DateConverter.getGlobalDateString
(ActionContext context) The user defined global date format, seeDate.DATETAG_PROPERTY
-
Uses of ActionContext in com.opensymphony.xwork2.interceptor
Methods in com.opensymphony.xwork2.interceptor with parameters of type ActionContextModifier and TypeMethodDescriptionprotected void
StaticParametersInterceptor.addParametersToContext
(ActionContext ac, Map<String, ?> newParams) Adds the parameters into context's ParameterMap.WithLazyParams.LazyParamInjector.injectParams
(Interceptor interceptor, Map<String, String> params, ActionContext invocationContext) protected Object
ScopedModelDrivenInterceptor.resolveModel
(ObjectFactory factory, ActionContext actionContext, String modelClassName, String modelScope, String modelName) StaticParametersInterceptor.retrieveParameters
(ActionContext ac) -
Uses of ActionContext in com.opensymphony.xwork2.mock
Methods in com.opensymphony.xwork2.mock that return ActionContextMethods in com.opensymphony.xwork2.mock with parameters of type ActionContextModifier and TypeMethodDescriptionvoid
MockActionInvocation.setInvocationContext
(ActionContext invocationContext) -
Uses of ActionContext in com.opensymphony.xwork2.ognl
Methods in com.opensymphony.xwork2.ognl that return ActionContext -
Uses of ActionContext in com.opensymphony.xwork2.util
Methods in com.opensymphony.xwork2.util that return ActionContext -
Uses of ActionContext in org.apache.struts2
Methods in org.apache.struts2 that return ActionContextModifier and TypeMethodDescriptionstatic ActionContext
ServletActionContext.getActionContext()
static ActionContext
ServletActionContext.getActionContext
(jakarta.servlet.http.HttpServletRequest req) Gets the current action contextstatic ActionContext
ServletActionContext.getContext()
Deprecated. -
Uses of ActionContext in org.apache.struts2.dispatcher
Methods in org.apache.struts2.dispatcher that return ActionContextModifier and TypeMethodDescriptionPrepareOperations.createActionContext
(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response) Creates the action context and initializes the thread local -
Uses of ActionContext in org.apache.struts2.interceptor
Methods in org.apache.struts2.interceptor with parameters of type ActionContextModifier and TypeMethodDescriptionprotected void
ActionMappingParametersInterceptor.addParametersToContext
(ActionContext ac, Map<String, ?> newParams) Adds the parameters into the current ActionContext's parameter map.protected HttpParameters
ActionMappingParametersInterceptor.retrieveParameters
(ActionContext actionContext) Get the parameter map from ActionMapping associated with the provided ActionContext. -
Uses of ActionContext in org.apache.struts2.interceptor.parameter
Methods in org.apache.struts2.interceptor.parameter with parameters of type ActionContextModifier and TypeMethodDescriptionprotected void
ParametersInterceptor.addParametersToContext
(ActionContext ac, Map<String, ?> newParams) Adds the parameters into context's ParameterMapprotected HttpParameters
ParametersInterceptor.retrieveParameters
(ActionContext actionContext) Gets the parameter map to apply from wherever appropriate
ServletActionContext.getActionContext()
instead