|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.struts2.dispatcher.mapper.ActionMapping
public class 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 | |
---|---|
ActionMapping()
Constructs an ActionMapping |
|
ActionMapping(Result result)
Constructs an ActionMapping with a default result |
|
ActionMapping(String name,
String namespace,
String method,
Map<String,Object> params)
Constructs an ActionMapping with its values |
Method Summary | |
---|---|
String |
getExtension()
|
String |
getMethod()
|
String |
getName()
|
String |
getNamespace()
|
Map<String,Object> |
getParams()
|
Result |
getResult()
|
void |
setExtension(String extension)
|
void |
setMethod(String method)
|
void |
setName(String name)
|
void |
setNamespace(String namespace)
|
void |
setParams(Map<String,Object> params)
|
void |
setResult(Result result)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ActionMapping()
public ActionMapping(Result result)
result
- The default resultpublic ActionMapping(String name, String namespace, String method, Map<String,Object> params)
name
- The action namenamespace
- The action namespacemethod
- The methodparams
- The extra parametersMethod Detail |
---|
public String getName()
public String getNamespace()
public Map<String,Object> getParams()
public String getMethod()
public Result getResult()
public String getExtension()
public void setResult(Result result)
result
- The resultpublic void setName(String name)
name
- The action namepublic void setNamespace(String namespace)
namespace
- The action namespacepublic void setMethod(String method)
method
- The method name to call on the actionpublic void setParams(Map<String,Object> params)
params
- The extra parameters for this mappingpublic void setExtension(String extension)
extension
- The extension used in the request
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |