Package | Description |
---|---|
org.apache.struts.action |
The action package is the core of the struts framework,
providing the "Controller" aspect of a MVC model.
|
org.apache.struts.config |
The "config" package contains configuration objects that correspond to
elements that may be specified in the
struts-config.xml
module configuration file. |
org.apache.struts.config.impl | |
org.apache.struts.util |
The Utilities package provides a variety of families of classes,
to solve problems that are commonly encountered in building web applications.
|
Modifier and Type | Class and Description |
---|---|
class |
ActionMapping
An ActionMapping represents the information that the
controller,
RequestProcessor , knows about the mapping
of a particular request to an instance of a particular Action class. |
class |
RequestActionMapping
Subclass of
ActionMapping that defaults the form bean
scope to request . |
class |
SessionActionMapping
Subclass of
ActionMapping that defaults the form bean
scope to session . |
Modifier and Type | Field and Description |
---|---|
private ActionConfig |
ActionConfigMatcher.Mapping.config
The original ActionConfig.
|
Modifier and Type | Method and Description |
---|---|
protected ActionConfig |
ActionConfigMatcher.convertActionConfig(java.lang.String path,
ActionConfig orig,
java.util.Map vars)
Clones the ActionConfig and its children, replacing various properties
with the values of the wildcard-matched strings.
|
ActionConfig |
ModuleConfig.findActionConfig(java.lang.String path)
Return the action configuration for the specified path, if any;
otherwise return
null . |
ActionConfig[] |
ModuleConfig.findActionConfigs()
Return the action configurations for this module.
|
ActionConfig |
ActionConfigMatcher.Mapping.getActionConfig()
Gets the ActionConfig that contains the pattern.
|
ActionConfig |
ActionConfigMatcher.match(java.lang.String path)
Matches the path against the compiled wildcard patterns.
|
Modifier and Type | Method and Description |
---|---|
void |
ModuleConfig.addActionConfig(ActionConfig config)
Add a new
ActionConfig instance to the set associated
with this module. |
protected ActionConfig |
ActionConfigMatcher.convertActionConfig(java.lang.String path,
ActionConfig orig,
java.util.Map vars)
Clones the ActionConfig and its children, replacing various properties
with the values of the wildcard-matched strings.
|
void |
ModuleConfig.removeActionConfig(ActionConfig config)
Remove the specified action configuration instance.
|
Constructor and Description |
---|
ActionConfigMatcher.Mapping(int[] pattern,
ActionConfig config)
Contructs a read-only Mapping instance.
|
ActionConfigMatcher(ActionConfig[] configs)
Finds and precompiles the wildcard patterns from the ActionConfig
"path" attributes.
|
Modifier and Type | Method and Description |
---|---|
ActionConfig |
ModuleConfigImpl.findActionConfig(java.lang.String path)
Return the action configuration for the specified path, first looking
a direct match, then if none found, a wildcard pattern match;
otherwise return
null . |
ActionConfig[] |
ModuleConfigImpl.findActionConfigs()
Return the action configurations for this module.
|
Modifier and Type | Method and Description |
---|---|
void |
ModuleConfigImpl.addActionConfig(ActionConfig config)
Add a new
ActionConfig instance to the set associated
with this module. |
void |
ModuleConfigImpl.removeActionConfig(ActionConfig config)
Remove the specified action configuration instance.
|
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
RequestUtils.actionURL(javax.servlet.http.HttpServletRequest request,
ActionConfig action,
java.lang.String pattern)
Return the context-relative URL that corresponds to the specified
ActionConfig , relative to the module associated
with the current modules's ModuleConfig . |
Copyright ? 2000-2014 - The Apache Software Foundation