org.apache.struts.action
クラス ActionMapping

java.lang.Object
  拡張org.apache.struts.config.ActionConfig
      拡張org.apache.struts.action.ActionMapping
すべての実装インタフェース:
java.io.Serializable
直系の既知のサブクラス:
RequestActionMapping, SessionActionMapping

public class ActionMapping
extends ActionConfig

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.

バージョン:
$Revision: 1.9 $ $Date: 2003/12/16 16:46:16 $
作成者:
Craig R. McClanahan
関連項目:
直列化された形式
翻訳者:
おかだひでひさ, 横田 健彦
翻訳状況:
初稿(校正者募集中)
翻訳更新日:
2003/12/16

フィールドの概要
 
クラス 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を(必要に応じて)生成して返します。
 
クラス org.apache.struts.config.ActionConfig から継承したメソッド
addExceptionConfig, addForwardConfig, findExceptionConfig, findExceptionConfigs, findForwardConfig, findForwardConfigs, freeze, getApplicationConfig, getAttribute, getForward, getInclude, getInput, getModuleConfig, getMultipartClass, getName, getParameter, getPath, getPrefix, getRoleNames, getRoles, getScope, getSuffix, getType, getUnknown, getValidate, removeExceptionConfig, removeForwardConfig, setApplicationConfig, setAttribute, setForward, setInclude, setInput, setModuleConfig, setMultipartClass, setName, setParameter, setPath, setPrefix, setRoles, setScope, setSuffix, setType, setUnknown, setValidate, toString
 
クラス java.lang.Object から継承したメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

コンストラクタの詳細

ActionMapping

public ActionMapping()
メソッドの詳細

findException

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 - ハンドラを探す例外クラス
Exception class for which to find a handler
導入されたバージョン:
Struts 1.1

findForward

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 - 返されるフォワードインスタンスの論理名
Logical name of the forwarding instance to be returned

findForwards

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.


getInputForward

public ActionForward getInputForward()

このアクションのinputプロパティに対応する ActionForwardを(必要に応じて)生成して返します。

Create (if necessary) and return an {@link ActionForward} that corresponds to the input property of this Action.

導入されたバージョン:
Struts 1.1


このドキュメントは、Ja-Jakartaにより訳されました。コメントがある場合は、report@jajakarta.orgまでお願いします。
Copyright (C) 2000-2003 - Apache Software Foundation