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 Summary
ConstructorsConstructorDescriptionConstructs an ActionMappingConstructs an ActionMapping with its valuesActionMapping
(Result result) Constructs an ActionMapping with a default result -
Method Summary
Modifier and TypeMethodDescriptiongetName()
void
setExtension
(String extension) void
void
void
setNamespace
(String namespace) void
void
toString()
-
Constructor Details
-
ActionMapping
public ActionMapping()Constructs an ActionMapping -
ActionMapping
Constructs an ActionMapping with a default result- Parameters:
result
- The default result
-
ActionMapping
Constructs an ActionMapping with its values- Parameters:
name
- The action namenamespace
- The action namespacemethod
- The methodparams
- 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
-