Uses of Class
org.apache.struts.config.ActionConfig
Package
Description
The action package is the core of the struts framework,
providing the "Controller" aspect of a MVC model.
Configurable commands that may be placed within the
request processor.
Commands which are particular to servlet processing.
This package provides objects that encapsulate access to
the request and session-scoped resources to service
command processing.
The "config" package contains configuration objects that correspond to
elements that may be specified in the
struts-config.xml
module configuration file.Provides default implementation classes for the
configuration objects.
The Utilities package provides a variety of families of classes,
to solve problems that are commonly encountered in building web applications.
-
Uses of ActionConfig in org.apache.struts.action
Modifier and TypeClassDescriptionclass
An ActionMapping represents the information that the controller,RequestProcessor
, knows about the mapping of a particular request to an instance of a particularAction
class.class
Subclass ofActionMapping
that defaults the form bean scope torequest
.class
Subclass ofActionMapping
that defaults the form bean scope tosession
.Modifier and TypeMethodDescriptionprotected ActionConfig
ActionServlet.processActionConfigClass
(ActionConfig actionConfig, ModuleConfig moduleConfig) Checks if the current actionConfig is using the correct class based on the class of its ancestor ActionConfig.Modifier and TypeMethodDescriptionprotected ActionConfig
ActionServlet.processActionConfigClass
(ActionConfig actionConfig, ModuleConfig moduleConfig) Checks if the current actionConfig is using the correct class based on the class of its ancestor ActionConfig.protected void
ActionServlet.processActionConfigExtension
(ActionConfig actionConfig, ModuleConfig moduleConfig) Extend the action's configuration as necessary.protected ExceptionConfig
ActionServlet.processExceptionConfigClass
(ExceptionConfig exceptionConfig, ModuleConfig moduleConfig, ActionConfig actionConfig) Checks if the current exceptionConfig is using the correct class based on the class of its configuration ancestor.protected void
ActionServlet.processExceptionExtension
(ExceptionConfig exceptionConfig, ModuleConfig moduleConfig, ActionConfig actionConfig) Extend the exception's configuration as necessary.protected ForwardConfig
ActionServlet.processForwardConfigClass
(ForwardConfig forwardConfig, ModuleConfig moduleConfig, ActionConfig actionConfig) Checks if the current forwardConfig is using the correct class based on the class of its configuration ancestor.protected void
ActionServlet.processForwardExtension
(ForwardConfig forwardConfig, ModuleConfig moduleConfig, ActionConfig actionConfig) Extend the forward's configuration as necessary. -
Uses of ActionConfig in org.apache.struts.chain.commands
Modifier and TypeMethodDescriptionprotected abstract ForwardConfig
AbstractExecuteAction.execute
(ActionContext context, Action action, ActionConfig actionConfig, ActionForm actionForm) Execute the specifiedAction
, and return the resultingForwardConfig
.protected abstract Action
AbstractCreateAction.getAction
(ActionContext context, String type, ActionConfig actionConfig) Create and return the appropriateAction
class for the giventype
andactionConfig
.protected abstract String
AbstractAuthorizeAction.getErrorMessage
(ActionContext context, ActionConfig actionConfig) Retrieve error message from context.protected abstract String
AbstractSelectInput.getErrorMessage
(ActionContext context, ActionConfig actionConfig) Retrieve error message from context.protected abstract ForwardConfig
AbstractExceptionHandler.handle
(ActionContext context, Exception exception, ExceptionConfig exceptionConfig, ActionConfig actionConfig, ModuleConfig moduleConfig) Perform the required handling of the specified exception.protected void
AbstractPopulateActionForm.handleCancel
(ActionContext context, ActionConfig actionConfig, ActionForm actionForm) Take into account whether the request includes any defined value for the global "cancel" parameter.protected ForwardConfig
AbstractSelectInput.inputForward
(ActionConfig actionConfig, ModuleConfig moduleConfig, String input) Attempts to resolve the input as aForwardConfig
attribute.protected boolean
AbstractAuthorizeAction.isAuthorizationRequired
(ActionConfig actionConfig) Must authorization rules be consulted? The base implementation returnstrue
if the givenActionConfig
has one or more roles defined.protected abstract boolean
AbstractAuthorizeAction.isAuthorized
(ActionContext context, String[] roles, ActionConfig actionConfig) Determine if the action is authorized for the given roles.protected abstract boolean
AbstractPopulateActionForm.isPopulate
(ActionContext context, ActionConfig actionConfig) Determines whether an action form should be populated.protected abstract boolean
AbstractPopulateActionForm.isReset
(ActionContext context, ActionConfig actionConfig) Determines whether an action form should be resetprotected abstract void
AbstractPopulateActionForm.populate
(ActionContext context, ActionConfig actionConfig, ActionForm actionForm) Populate the givenActionForm
with request parameter values, taking into account any prefix/suffix values configured on the givenActionConfig
.protected abstract void
AbstractPopulateActionForm.reset
(ActionContext context, ActionConfig actionConfig, ActionForm actionForm) Call thereset()
method on the specified form bean.protected String
AbstractPopulateActionForm.trimParameterName
(ActionConfig actionConfig, String name) For a given request parameter name, trim off any prefix and/or suffix which are defined inactionConfig
and return what remains.protected abstract ActionErrors
AbstractValidateActionForm.validate
(ActionContext context, ActionConfig actionConfig, ActionForm actionForm) Call thevalidate()
method of the specified form bean, and return the resultingActionErrors
object. -
Uses of ActionConfig in org.apache.struts.chain.commands.servlet
Modifier and TypeMethodDescriptionprotected ForwardConfig
ExecuteAction.execute
(ActionContext context, Action action, ActionConfig actionConfig, ActionForm actionForm) Execute the specifiedAction
, and return the resultingActionForward
.protected Action
CreateAction.getAction
(ActionContext context, String type, ActionConfig actionConfig) protected String
AuthorizeAction.getErrorMessage
(ActionContext context, ActionConfig actionConfig) protected String
SelectInput.getErrorMessage
(ActionContext context, ActionConfig actionConfig) protected ForwardConfig
ExceptionHandler.handle
(ActionContext context, Exception exception, ExceptionConfig exceptionConfig, ActionConfig actionConfig, ModuleConfig moduleConfig) protected boolean
AuthorizeAction.isAuthorized
(ActionContext context, String[] roles, ActionConfig mapping) protected boolean
PopulateActionForm.isPopulate
(ActionContext context, ActionConfig actionConfig) Determines whether an action form should be populated.protected boolean
PopulateActionForm.isReset
(ActionContext context, ActionConfig actionConfig) Determines whether an action form should be reset.protected void
PopulateActionForm.populate
(ActionContext context, ActionConfig actionConfig, ActionForm actionForm) protected void
PopulateActionForm.reset
(ActionContext context, ActionConfig actionConfig, ActionForm actionForm) protected ActionErrors
ValidateActionForm.validate
(ActionContext context, ActionConfig actionConfig, ActionForm actionForm) Call thevalidate()
method of the specified form bean, and return the resultingActionErrors
object. -
Uses of ActionConfig in org.apache.struts.chain.contexts
Modifier and TypeMethodDescriptionActionContext.getActionConfig()
Get the ActionConfig which contains the details for processing this request.ActionContextBase.getActionConfig()
Modifier and TypeMethodDescriptionvoid
ActionContext.setActionConfig
(ActionConfig config) Set the ActionConfig class contains the details for processing this request.void
ActionContextBase.setActionConfig
(ActionConfig config) void
ServletActionContext.setActionConfig
(ActionConfig actionConfig) -
Uses of ActionConfig in org.apache.struts.config
Modifier and TypeMethodDescriptionprotected ActionConfig
ActionConfigMatcher.convertActionConfig
(String path, ActionConfig orig, Map<String, String> vars) Clones the ActionConfig and its children, replacing various properties with the values of the wildcard-matched strings.ModuleConfig.findActionConfig
(String path) Return the action configuration for the specified path, if any; otherwise returnnull
.ModuleConfig.findActionConfigId
(String actionId) Returns the action configuration for the specifed action action identifier.ModuleConfig.findActionConfigs()
Return the action configurations for this module.Matches the path against the compiled wildcard patterns.Modifier and TypeMethodDescriptionvoid
ModuleConfig.addActionConfig
(ActionConfig config) Add a newActionConfig
instance to the set associated with this module.protected boolean
ExceptionConfig.checkCircularInheritance
(ModuleConfig moduleConfig, ActionConfig actionConfig) Traces the hierarchy of this object to check if any of the ancestors are extending this instance.protected boolean
ForwardConfig.checkCircularInheritance
(ModuleConfig moduleConfig, ActionConfig actionConfig) Traces the hierarchy of this object to check if any of the ancestors are extending this instance.protected ActionConfig
ActionConfigMatcher.convertActionConfig
(String path, ActionConfig orig, Map<String, String> vars) Clones the ActionConfig and its children, replacing various properties with the values of the wildcard-matched strings.protected void
ActionConfig.inheritExceptionHandlers
(ActionConfig baseConfig) Compare the exception handlers of this action with that of the given and copy those that are not present.protected void
ActionConfig.inheritForwards
(ActionConfig baseConfig) Compare the forwards of this action with that of the given and copy those that are not present.void
ActionConfig.inheritFrom
(ActionConfig config) Inherit values that have not been overridden from the provided config object.void
ExceptionConfig.processExtends
(ModuleConfig moduleConfig, ActionConfig actionConfig) Inherit configuration information from the ExceptionConfig that this instance is extending.void
ForwardConfig.processExtends
(ModuleConfig moduleConfig, ActionConfig actionConfig) Inherit configuration information from the ForwardConfig that this instance is extending.void
ModuleConfig.removeActionConfig
(ActionConfig config) Remove the specified action configuration instance.ModifierConstructorDescriptionActionConfigMatcher
(ActionConfig[] configs) Finds and precompiles the wildcard patterns from the ActionConfig "path" attributes. -
Uses of ActionConfig in org.apache.struts.config.impl
Modifier and TypeFieldDescriptionprotected HashMap
<String, ActionConfig> ModuleConfigImpl.actionConfigIds
The set of action configuration for this module, if any, keyed by theactionId
property.protected ArrayList
<ActionConfig> ModuleConfigImpl.actionConfigList
The set of action configurations for this module, if any, listed in the order in which they are added.protected Map
<String, ActionConfig> ModuleConfigImpl.actionConfigs
The set of action configurations for this module, if any, keyed by thepath
property.Modifier and TypeMethodDescriptionModuleConfigImpl.findActionConfig
(String path) Return the action configuration for the specified path, first looking a direct match, then if none found, a wildcard pattern match; otherwise returnnull
.ModuleConfigImpl.findActionConfigId
(String actionId) Returns the action configuration for the specifed action action identifier.ModuleConfigImpl.findActionConfigs()
Return the action configurations for this module.Modifier and TypeMethodDescriptionvoid
ModuleConfigImpl.addActionConfig
(ActionConfig config) Ad d a newActionConfig
instance to the set associated with this module.void
ModuleConfigImpl.removeActionConfig
(ActionConfig config) Remove the specified action configuration instance. -
Uses of ActionConfig in org.apache.struts.util
Modifier and TypeMethodDescriptionstatic String
RequestUtils.actionURL
(HttpServletRequest request, ActionConfig action, String pattern) Return the context-relative URL that corresponds to the specifiedActionConfig
, relative to the module associated with the current modules'sModuleConfig
.