Uses of Interface
org.apache.struts.config.ModuleConfig
Package
Description
The action package is the core of the struts framework,
providing the "Controller" aspect of a MVC model.
Contains the new
ComposableRequestProcessor
which was introduced in Struts 1.3.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 upload package facilities to upload files using
multi-part requests.
The Utilities package provides a variety of families of classes,
to solve problems that are commonly encountered in building web applications.
The validator package provides a series of classes to validate
ActionForm
type of input.-
Uses of ModuleConfig in org.apache.struts.action
Modifier and TypeFieldDescriptionprotected ModuleConfig
RequestProcessor.moduleConfig
TheModuleConfiguration
with which we are associated.Modifier and TypeMethodDescriptionprotected ModuleConfig
ActionServlet.getModuleConfig
(HttpServletRequest request) Return the module configuration object for the currently selected module.protected ModuleConfig
ActionServlet.initModuleConfig
(String prefix, String paths) Initialize the module configuration information for the specified module.Modifier and TypeMethodDescriptionprotected RequestProcessor
ActionServlet.getRequestProcessor
(ModuleConfig config) Look up and return theRequestProcessor
responsible for the specified module, creating a new one if necessary.void
PlugIn.init
(ActionServlet servlet, ModuleConfig config) Receive notification that the specified module is being started up.void
RequestProcessor.init
(ActionServlet servlet, ModuleConfig moduleConfig) Initialize this request processor instance.protected void
ActionServlet.initModuleActions
(ModuleConfig config) Initialize the action configs for the specified module.protected void
ActionServlet.initModuleExceptionConfigs
(ModuleConfig config) Initialize the exception handlers for the specified module.protected void
ActionServlet.initModuleFormBeans
(ModuleConfig config) Initialize the form beans for the specified module.protected void
ActionServlet.initModuleForwards
(ModuleConfig config) Initialize the forwards for the specified module.protected void
ActionServlet.initModuleMessageResources
(ModuleConfig config) Initialize the applicationMessageResources
for the specified module.protected void
ActionServlet.initModulePlugIns
(ModuleConfig config) Initialize the plug ins for the specified module.protected 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 FormBeanConfig
ActionServlet.processFormBeanConfigClass
(FormBeanConfig beanConfig, ModuleConfig moduleConfig) Checks if the current beanConfig is using the correct class based on the class of its ancestor form bean config.protected void
ActionServlet.processFormBeanExtension
(FormBeanConfig beanConfig, ModuleConfig moduleConfig) Extend the form bean'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 ModuleConfig in org.apache.struts.chain
Modifier and TypeMethodDescriptionvoid
ComposableRequestProcessor.init
(ActionServlet servlet, ModuleConfig moduleConfig) Initialize this request processor instance.protected void
ComposableRequestProcessor.initCatalogFactory
(ActionServlet servlet, ModuleConfig moduleConfig) Establish the CatalogFactory which will be used to look up the catalog which has the request processing command. -
Uses of ModuleConfig in org.apache.struts.chain.commands
Modifier and TypeMethodDescriptionprotected abstract ForwardConfig
AbstractSelectForward.forward
(ActionContext context, ModuleConfig moduleConfig, String uri) Create and return aForwardConfig
representing the specified module-relative destination.protected abstract ForwardConfig
AbstractSelectInput.forward
(ActionContext context, ModuleConfig moduleConfig, String uri) Create and return aForwardConfig
representing the specified module-relative destination.protected abstract ForwardConfig
AbstractExceptionHandler.handle
(ActionContext context, Exception exception, ExceptionConfig exceptionConfig, ActionConfig actionConfig, ModuleConfig moduleConfig) Perform the required handling of the specified exception.protected ForwardConfig
AbstractSelectInput.inputForward
(ActionConfig actionConfig, ModuleConfig moduleConfig, String input) Attempts to resolve the input as aForwardConfig
attribute. -
Uses of ModuleConfig in org.apache.struts.chain.commands.servlet
Modifier and TypeMethodDescriptionprotected ForwardConfig
SelectForward.forward
(ActionContext context, ModuleConfig moduleConfig, String uri) Create and return aForwardConfig
representing the specified module-relative destination.protected ForwardConfig
SelectInput.forward
(ActionContext context, ModuleConfig moduleConfig, String uri) Create and return aForwardConfig
representing the specified module-relative destination.protected ForwardConfig
ExceptionHandler.handle
(ActionContext context, Exception exception, ExceptionConfig exceptionConfig, ActionConfig actionConfig, ModuleConfig moduleConfig) -
Uses of ModuleConfig in org.apache.struts.chain.contexts
Modifier and TypeMethodDescriptionActionContext.getModuleConfig()
Get the ModuleConfig which is operative for the current request.ActionContextBase.getModuleConfig()
WebActionContext.getModuleConfig()
Modifier and TypeMethodDescriptionActionContextBase.findOrCreateActionForm
(String formName, String scopeName, ModuleConfig moduleConfig) In the context of the givenModuleConfig
and thisActionContext
, look for an existingActionForm
in the specified scope.void
ActionContext.setModuleConfig
(ModuleConfig config) Set the ModuleConfig which is operative for the current request.void
ActionContextBase.setModuleConfig
(ModuleConfig config) void
WebActionContext.setModuleConfig
(ModuleConfig moduleConfig) -
Uses of ModuleConfig in org.apache.struts.config
Modifier and TypeFieldDescriptionprotected ModuleConfig
ActionConfig.moduleConfig
The module configuration with which we are associated.Modifier and TypeMethodDescriptionabstract ModuleConfig
ModuleConfigFactory.createModuleConfig
(String prefix) Create and return a newly instansiatedModuleConfig
.ActionConfig.getModuleConfig()
The module configuration with which we are associated.Modifier and TypeMethodDescriptionprotected boolean
ActionConfig.checkCircularInheritance
(ModuleConfig moduleConfig) Traces the hierarchy of this object to check if any of the ancestors is extending this instance.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
FormBeanConfig.checkCircularInheritance
(ModuleConfig moduleConfig) Traces the hierarchy of this object to check if any of the ancestors is 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.void
ModuleConfigPostProcessor.postProcessAfterInitialization
(BaseConfig config, ModuleConfig moduleConfig) Applies this post-processor to the specified configuration object after it has been initialized by Struts but before it is frozen.void
ModuleConfigPostProcessor.postProcessAfterInitialization
(ModuleConfig moduleConfig) Modify the specified module after its standard initialization.void
ModuleConfigPostProcessor.postProcessBeforeInitialization
(BaseConfig config, ModuleConfig moduleConfig) Applies this post-processor to the specified configuration object before it has been initialized and processed by Struts (such as heirarchy extensions).void
ActionConfig.processExtends
(ModuleConfig moduleConfig) Inherit configuration information from the ActionConfig that this instance is extending.void
ExceptionConfig.processExtends
(ModuleConfig moduleConfig, ActionConfig actionConfig) Inherit configuration information from the ExceptionConfig that this instance is extending.void
FormBeanConfig.processExtends
(ModuleConfig moduleConfig) Inherit configuration information from the FormBeanConfig that this instance is extending.void
ForwardConfig.processExtends
(ModuleConfig moduleConfig, ActionConfig actionConfig) Inherit configuration information from the ForwardConfig that this instance is extending.void
ActionConfig.setModuleConfig
(ModuleConfig moduleConfig) The module configuration with which we are associated. -
Uses of ModuleConfig in org.apache.struts.config.impl
Modifier and TypeClassDescriptionclass
The collection of static configuration information that describes a Struts-based module.Modifier and TypeMethodDescriptionDefaultModuleConfigFactory.createModuleConfig
(String prefix) Create and return a newly instansiatedModuleConfig
. -
Uses of ModuleConfig in org.apache.struts.upload
Modifier and TypeMethodDescriptionprotected long
CommonsMultipartRequestHandler.getFileCountMax
(ModuleConfig mc) Returns the maximum permitted number of files that may be uploaded in a single request.protected long
CommonsMultipartRequestHandler.getFileSizeMax
(ModuleConfig mc) Returns the maximum allowable file-size, in bytes, of an uploaded file.protected long
CommonsMultipartRequestHandler.getMaxStringLen
(ModuleConfig mc) Returns the maximum allowable length, in bytes, of a string parameter in a multipart request.protected File
CommonsMultipartRequestHandler.getRepositoryFile
(ModuleConfig mc) Returns the path to the temporary directory to be used for uploaded files which are written to disk.protected long
CommonsMultipartRequestHandler.getSizeMax
(ModuleConfig mc) Returns the maximum allowed size of a complete request.protected long
CommonsMultipartRequestHandler.getSizeThreshold
(ModuleConfig mc) Returns the size threshold which determines whether an uploaded file will be written to disk or cached in memory. -
Uses of ModuleConfig in org.apache.struts.util
Modifier and TypeMethodDescriptionModuleUtils.getModuleConfig
(HttpServletRequest request) Return the current ModuleConfig object stored in request, if it exists, null otherwise.ModuleUtils.getModuleConfig
(HttpServletRequest request, ServletContext context) Return the ModuleConfig object is it exists, null otherwise.ModuleUtils.getModuleConfig
(String prefix, HttpServletRequest request, ServletContext context) Return the desired ModuleConfig object stored in context, if it exists, otherwise return the current ModuleConfigModuleUtils.getModuleConfig
(String prefix, ServletContext context) Return the desired ModuleConfig object stored in context, if it exists, null otherwise.Modifier and TypeMethodDescriptionstatic String
RequestUtils.actionIdURL
(String originalPath, ModuleConfig moduleConfig, ActionServlet servlet) Returns the true path of the destination action if the specified forward is an action-aliased URL.static ActionForm
RequestUtils.createActionForm
(HttpServletRequest request, ActionMapping mapping, ModuleConfig moduleConfig, ActionServlet servlet) Create (if necessary) and return anActionForm
instance appropriate for this request.static String
RequestUtils.forwardURL
(HttpServletRequest request, ForwardConfig forward, ModuleConfig moduleConfig) Return the context-relative URL that corresponds to the specifiedForwardConfig
. -
Uses of ModuleConfig in org.apache.struts.validator
Modifier and TypeMethodDescriptionvoid
ValidatorPlugIn.init
(ActionServlet servlet, ModuleConfig config) Initialize and load our resources.