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

コントローラのRequestProcessorが知っている、 Actionクラスのインスタンスとリクエストのマッピング情報を、 ActionMappingは表わします。 Actionを選択するために使用したActionMappingのインスタンスは、 選択したActionに渡されますので、 ActionMappingオブジェクトに含まれている任意のカスタム情報にアクセスすることができます。

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.

Struts 1.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.4 $ $Date: 2005/03/12 12:59:29 $
関連項目:
直列化された形式
翻訳者:
おかだひでひさ, 横田 健彦, 棚澤 昌幸
校正者:
翻訳状況:
初稿(校正者募集中)

フィールドの概要
 
クラス 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()
           
 
メソッドの概要
 ActionForward findForward(java.lang.String name)
          指定された論理名へのフォワードがどのように扱われるべきかを定義している、 ForwardConfigインスタンスを探して返します。
 java.lang.String[] findForwards()
          このマッピングに定義された全てのローカルフォワードの論理名を返します。
 ActionForward getInputForward()
          このアクションのinputプロパティに対応するActionForwardを、 (必要に応じて)生成して返します。
 
クラス org.apache.struts.config.ActionConfig から継承したメソッド
addExceptionConfig, addForwardConfig, findException, findExceptionConfig, findExceptionConfigs, findForwardConfig, findForwardConfigs, freeze, getAttribute, getForward, getInclude, getInput, getModuleConfig, getMultipartClass, getName, getParameter, getPath, getPrefix, getRoleNames, getRoles, getScope, getSuffix, getType, getUnknown, getValidate, removeExceptionConfig, removeForwardConfig, 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()
メソッドの詳細

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

findForwards

public java.lang.String[] findForwards()

このマッピングに定義された全てのローカルフォワードの論理名を返します。 定義されたフォワードが一つもない場合、 長さ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-2004 - Apache Software Foundation