Class ActionMapping
java.lang.Object
org.apache.struts2.dispatcher.mapper.ActionMapping
Simple class that holds the action mapping information used to invoke a
 Struts action. The name and namespace are required, but the params map
 is optional, and as such may be null. If a params map is supplied,
 it must be a mutable map, such as a HashMap.
- 
Constructor SummaryConstructorsConstructorDescriptionConstructs an ActionMappingConstructs an ActionMapping with its valuesActionMapping(Result result) Constructs an ActionMapping with a default result
- 
Method SummaryModifier and TypeMethodDescriptiongetName()voidsetExtension(String extension) voidvoidvoidsetNamespace(String namespace) voidvoidtoString()
- 
Constructor Details- 
ActionMappingpublic ActionMapping()Constructs an ActionMapping
- 
ActionMappingConstructs an ActionMapping with a default result- Parameters:
- result- The default result
 
- 
ActionMappingConstructs an ActionMapping with its values- Parameters:
- name- The action name
- namespace- The action namespace
- method- The method
- params- The extra parameters
 
 
- 
- 
Method Details- 
getName- Returns:
- The action name
 
- 
getNamespace- Returns:
- The action namespace
 
- 
getParams- Returns:
- The extra parameters
 
- 
getMethod- Returns:
- The method
 
- 
getResult- Returns:
- The default result
 
- 
getExtension- Returns:
- The extension used during this request
 
- 
setResult- Parameters:
- result- The result
 
- 
setName- Parameters:
- name- The action name
 
- 
setNamespace- Parameters:
- namespace- The action namespace
 
- 
setMethod- Parameters:
- method- The method name to call on the action
 
- 
setParams- Parameters:
- params- The extra parameters for this mapping
 
- 
setExtension- Parameters:
- extension- The extension used in the request
 
- 
toString
 
-