|
||||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||
java.lang.Objectorg.apache.struts.config.ActionConfig
org.apache.struts.action.ActionMapping
ActionMappingはコントローラサーブレットであるActionServletが知っている情報(リクエストとアクションクラスのインスタンスとのマッピング)を表します。
Actionを選択するために使用したActionMappingインスタンスは選択したActionに渡されますので、
ActionMappingオブジェクトに含まれている任意のカスタム設定情報にアクセスすることができます。
An ActionMapping represents the information that the
controller servlet, ActionServlet, 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.
Struts1.1からはこのクラスはActionConfigを拡張しています。
Since Struts 1.1 this class extends ActionConfig.
注意 - このクラスが既存のアプリケーションが使用している公開されたAPIの一部であるという事実がなければ、
このクラスの使用は推奨されずに
org.apache.struts.config.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 から継承したフィールド |
attribute, configured, exceptions, forward, forwards, include, input, moduleConfig, multipartClass, name, parameter, path, prefix, roleNames, roles, scope, suffix, type, unknown, validate |
| コンストラクタの概要 | |
ActionMapping()
|
|
| メソッドの概要 | |
ExceptionConfig |
findException(java.lang.Class type)
指定されたタイプの例外がどのように扱われるべきかを定義している ExceptionConfigインスタンスを探して返します。
|
ActionForward |
findForward(java.lang.String name)
指定された論理名へのフォワードがどのように扱われるべきかを定義している ForwardConfigインスタンスを探して返します。
|
java.lang.String[] |
findForwards()
このマッピングに定義された全てのローカルフォワードの論理名を返します。 |
ActionForward |
getInputForward()
このアクションの inputプロパティに対応する
ActionForwardを(必要に応じて)生成して返します。
|
| クラス java.lang.Object から継承したメソッド |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| コンストラクタの詳細 |
public ActionMapping()
| メソッドの詳細 |
public ExceptionConfig findException(java.lang.Class type)
指定されたタイプの例外がどのように扱われるべきかを定義している
ExceptionConfigインスタンスを探して返します。
このメソッドは指定された例外クラスのためにローカルな設定をチェックし次にグローバルな設定をチェックし、
スーパークラスの連鎖(それらについても再度ローカルな設定をチェックしグローバルな設定をチェックします)を調べていきます。
ハンドラの設定を見つけることができなかった場合はnullを返します。
Find and return the ExceptionConfig instance defining
how exceptions of the specified type should be handled. This is
performed by checking local and then global configurations for the
specified exception's class, and then looking up the superclass chain
(again checking local and then global configurations). If no handler
configuration can be found, return null.
type - ハンドラを探す例外クラス
public ActionForward findForward(java.lang.String name)
指定された論理名へのフォワードがどのように扱われるべきかを定義している
ForwardConfigインスタンスを探して返します。
このメソッドは指定されたフォワードの設定のためにローカルな設定をチェックし次にグローバルな設定をチェックします。
フォワードの設定を見つけることができなかった場合はnullを返します。
Find and return the ForwardConfig instance defining
how forwarding to the specified logical name should be handled. This is
performed by checking local and then global configurations for the
specified forwarding configuration. If no forwarding configuration
can be found, return null.
name - 返されるフォワードインスタンスの論理名
public java.lang.String[] findForwards()
このマッピングに定義された全てのローカルフォワードの論理名を返します。 もしフォワードが1つもない場合は長さ0の配列を返します。
Return the logical names of all locally defined forwards for this mapping. If there are no such forwards, a zero-length array is returned.
public ActionForward getInputForward()
このアクションのinputプロパティに対応する
ActionForwardを(必要に応じて)生成して返します。
Create (if necessary) and return an {@link ActionForward} that
corresponds to the input property of this Action.
|
||||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||