com.opensymphony.webwork.dispatcher.mapper
Class ActionMapping

java.lang.Object
  extended by com.opensymphony.webwork.dispatcher.mapper.ActionMapping
Direct Known Subclasses:
ActionMappingEx

public class ActionMapping
extends Object

Simple class that holds the action mapping information used to invoke a WebWork 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.

Version:
$Date: 2007-09-07 00:26:14 +0800 (Fri, 07 Sep 2007) $ $Id: ActionMapping.java 2951 2007-09-06 16:26:14Z tm_jee $
Author:
Patrick Lightbody, tmjee

Constructor Summary
ActionMapping()
          Create a default ActionMapping with the followings properties as null :- name namespace method params result
ActionMapping(Result result)
          Create an ActionMapping with result supplied as arguments with the remaining properties as null.
ActionMapping(String name, String namespace, String method, Map params)
          Create an ActionMapping with the name, namespace, method and params supplied.
 
Method Summary
 String getMethod()
          Return the action's execution method's name.
 String getName()
          Return the action's name.
 String getNamespace()
          Return the action's namespace.
 Map getParams()
          Return the action parameters.
 Result getResult()
          Return the action's Result
 void setMethod(String method)
          Set the action's execution method name.
 void setName(String name)
          Set the action's name.
 void setNamespace(String namespace)
          Set the action's namespace.
 void setParams(Map params)
          Set the action's parameters.
 void setResult(Result result)
          Set the action's Result.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ActionMapping

public ActionMapping()
Create a default ActionMapping with the followings properties as null :-


ActionMapping

public ActionMapping(Result result)
Create an ActionMapping with result supplied as arguments with the remaining properties as null.

Parameters:
result -

ActionMapping

public ActionMapping(String name,
                     String namespace,
                     String method,
                     Map params)
Create an ActionMapping with the name, namespace, method and params supplied.

Parameters:
name -
namespace -
method -
params -
Method Detail

getName

public String getName()
Return the action's name.

Returns:
String

getNamespace

public String getNamespace()
Return the action's namespace.

Returns:
String

getParams

public Map getParams()
Return the action parameters.

Returns:
Map

getMethod

public String getMethod()
Return the action's execution method's name.

Returns:
String

getResult

public Result getResult()
Return the action's Result

Returns:
Result

setResult

public void setResult(Result result)
Set the action's Result.

Parameters:
result -

setName

public void setName(String name)
Set the action's name.

Parameters:
name -

setNamespace

public void setNamespace(String namespace)
Set the action's namespace.

Parameters:
namespace -

setMethod

public void setMethod(String method)
Set the action's execution method name.

Parameters:
method -

setParams

public void setParams(Map params)
Set the action's parameters.

Parameters:
params -

WebWork Project Page