public class ActionMapping extends Object
An ActionMapping represents the information that the
controller, RequestProcessor, knows about the mapping of a
particular request to an instance of a particular Action
class. The ActionMapping instance used to select a particular
Action is passed on to that Action, thereby
providing access to any custom configuration information included with the
ActionMapping object.
Since Struts 1.1 this class extends ActionConfig.
NOTE - This class would have been deprecated and
replaced by org.apache.struts.config.ActionConfig except for
the fact that it is part of the public API that existing applications are
using.
org.apache.struts.config.ActionConfigを継承しないように変更する。org.apache.struts.action.ActionMapping| 修飾子とタイプ | フィールドと説明 |
|---|---|
protected String |
actionId |
protected String |
attribute |
protected String |
name |
protected String |
parameter |
protected String |
path |
protected String |
scope |
protected String |
type |
protected boolean |
validate |
| コンストラクタと説明 |
|---|
ActionMapping(Map<String,ActionForward> forwardMap)
コンストラクタ。
|
| 修飾子とタイプ | メソッドと説明 |
|---|---|
ActionForward |
findForward(String name)
コンストラクタ。
|
String |
getActionId()
アクションIdを取得する。
|
String |
getAttribute()
属性を取得する。
|
String |
getName()
名を取得する。
|
String |
getParameter()
パラメータを取得する。
|
String |
getPath()
パスを取得する。
|
String |
getScope()
スコープを取得する。
|
String |
getType()
タイプを取得する。
|
boolean |
isValidate()
バリデーションかどうかを判定する。
|
void |
setActionId(String actionId)
アクションIdを設定する。
|
void |
setAttribute(String attribute)
属性を設定する。
|
void |
setName(String name)
名を設定する。
|
void |
setParameter(String parameter)
パラメータを設定する。
|
void |
setPath(String path)
パスを設定する。
|
void |
setScope(String scope)
スコープを設定する。
|
void |
setType(String type)
タイプを設定する。
|
void |
setValidate(boolean validate)
バリデーションを設定する。
|
protected String actionId
protected String attribute
protected String scope
protected boolean validate
protected String path
protected String parameter
protected String type
protected String name
public ActionMapping(Map<String,ActionForward> forwardMap)
forwardMap - マップpublic ActionForward findForward(String name)
name - 名public String getActionId()
public void setActionId(String actionId)
actionId - アクションIdpublic boolean isValidate()
public void setValidate(boolean validate)
validate - バリデーションpublic void setAttribute(String attribute)
attribute - 属性public void setScope(String scope)
scope - スコープpublic void setPath(String path)
path - パスpublic void setParameter(String parameter)
parameter - パラメータpublic String getScope()
public String getPath()
public String getParameter()
public String getAttribute()
public String getType()
public void setType(String type)
type - タイプpublic String getName()
public void setName(String name)
name - 名