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オブジェクトに含まれている任意のカスタム情報にアクセスすることができます。

Struts 1.1からこのクラスはActionConfigを拡張しています。

注意 - このクラスが既存アプリケーションが使用している公開APIの一部であるという事実がなければ、 このクラスの使用は推奨されずにorg.apache.struts.config.ActionConfigに置き換えられていたでしょう。

バージョン:
$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を返します。

パラメータ:
name - 返されるフォワードインスタンスの論理名

findForwards

public java.lang.String[] findForwards()

このマッピングに定義された全てのローカルフォワードの論理名を返します。 定義されたフォワードが一つもない場合、 長さ0の配列を返します。


getInputForward

public ActionForward getInputForward()

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

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


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