|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||
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.
| 构造方法摘要 | |
|---|---|
ActionMapping()
Constructs an ActionMapping |
|
ActionMapping(com.opensymphony.xwork2.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 |
|
| 方法摘要 | |
|---|---|
String |
getExtension()
|
String |
getMethod()
|
String |
getName()
|
String |
getNamespace()
|
Map<String,Object> |
getParams()
|
com.opensymphony.xwork2.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(com.opensymphony.xwork2.Result result)
|
String |
toString()
|
| 从类 java.lang.Object 继承的方法 |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| 构造方法详细信息 |
|---|
public ActionMapping()
public ActionMapping(com.opensymphony.xwork2.Result result)
result - The default result
public ActionMapping(String name,
String namespace,
String method,
Map<String,Object> params)
name - The action namenamespace - The action namespacemethod - The methodparams - The extra parameters| 方法详细信息 |
|---|
public String getName()
public String getNamespace()
public Map<String,Object> getParams()
public String getMethod()
public com.opensymphony.xwork2.Result getResult()
public String getExtension()
public void setResult(com.opensymphony.xwork2.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 requestpublic String toString()
Object 中的 toString
|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||