org.apache.struts2.dispatcher.mapper
类 ActionMapping

java.lang.Object
  继承者 org.apache.struts2.dispatcher.mapper.ActionMapping

public class ActionMapping
extends Object

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
 

构造方法详细信息

ActionMapping

public ActionMapping()
Constructs an ActionMapping


ActionMapping

public ActionMapping(com.opensymphony.xwork2.Result result)
Constructs an ActionMapping with a default result

参数:
result - The default result

ActionMapping

public ActionMapping(String name,
                     String namespace,
                     String method,
                     Map<String,Object> params)
Constructs an ActionMapping with its values

参数:
name - The action name
namespace - The action namespace
method - The method
params - The extra parameters
方法详细信息

getName

public String getName()
返回:
The action name

getNamespace

public String getNamespace()
返回:
The action namespace

getParams

public Map<String,Object> getParams()
返回:
The extra parameters

getMethod

public String getMethod()
返回:
The method

getResult

public com.opensymphony.xwork2.Result getResult()
返回:
The default result

getExtension

public String getExtension()
返回:
The extension used during this request

setResult

public void setResult(com.opensymphony.xwork2.Result result)
参数:
result - The result

setName

public void setName(String name)
参数:
name - The action name

setNamespace

public void setNamespace(String namespace)
参数:
namespace - The action namespace

setMethod

public void setMethod(String method)
参数:
method - The method name to call on the action

setParams

public void setParams(Map<String,Object> params)
参数:
params - The extra parameters for this mapping

setExtension

public void setExtension(String extension)
参数:
extension - The extension used in the request

toString

public String toString()
覆盖:
Object 中的 toString