org.apache.struts.action
クラス ActionForward

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

public class ActionForward
extends ForwardConfig

ActionForwardは、 Actionクラスの処理の結果として、 コントローラ(RequestProcessor)によって実行される、 RequestDispatcher.forwardまたはHttpServletResponse.sendRedirectの遷移先を表わします。 このクラスのインスタンスは必要に応じて動的に生成される場合と、 あるマッピングインスタンスに対して複数存在しうる遷移先の中から名前による検索を行うために、 ActionMappingインスタンスの中に設定されている場合があります。

An ActionForward represents a destination to which the controller, RequestProcessor, might be directed to perform a RequestDispatcher.forward or HttpServletResponse.sendRedirect to, as a result of processing activities of an Action class. Instances of this class may be created dynamically as necessary, or configured in association with an ActionMapping instance for named lookup of potentially multiple destinations for a particular mapping instance.

ActionForwardは以下のプロパティのセットを少なくとも持ちます。 追加のプロパティは必要に応じてサブクラスによって提供されます。

An ActionForward has the following minimal set of properties. Additional properties can be provided as needed by subclassses.

Struts 1.1から、 このクラスはForwardConfigを拡張してcontextRelativeプロパティを継承しています。

Since Struts 1.1 this class extends ForwardConfig and inherits the contextRelative property.

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

NOTE - This class would have been deprecated and replaced by org.apache.struts.config.ForwardConfig 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.ForwardConfig から継承したフィールド
configured, contextRelative, module, name, path, redirect
 
コンストラクタの概要
ActionForward()
          デフォルトの値を用いて新しいインスタンスをコンストラクトします。
ActionForward(ActionForward copyMe)
          別のActionForwardの値を基に新しいインスタンスをコンストラクトします。
ActionForward(java.lang.String path)
          指定されたパスを用いて新しいインスタンスをコンストラクトします。
ActionForward(java.lang.String path, boolean redirect)
          指定されたpathredirectフラグを用いて新しいインスタンスをコンストラクトします。
ActionForward(java.lang.String name, java.lang.String path, boolean redirect)
          指定されたnamepathそしてredirectフラグを用いて新しいインスタンスをコンストラクトします。
ActionForward(java.lang.String name, java.lang.String path, boolean redirect, boolean contextRelative)
          推奨されていません。 contextRelativeよりもモジュールを使って下さい。
@deprecated Use module rather than contextRelative
ActionForward(java.lang.String name, java.lang.String path, boolean redirect, java.lang.String module)
          指定された値を用いて新しいインスタンスをコンストラクトします。
 
クラス org.apache.struts.config.ForwardConfig から継承したメソッド
freeze, getContextRelative, getModule, getName, getPath, getRedirect, setContextRelative, setModule, setName, setPath, setRedirect, toString
 
クラス java.lang.Object から継承したメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

コンストラクタの詳細

ActionForward

public ActionForward()

デフォルトの値を用いて新しいインスタンスをコンストラクトします。

Construct a new instance with default values.


ActionForward

public ActionForward(java.lang.String path)

指定されたパスを用いて新しいインスタンスをコンストラクトします。

Construct a new instance with the specified path.

パラメータ:
path - このインスタンスに設定するパス
@param path Path for this instance

ActionForward

public ActionForward(java.lang.String path,
                     boolean redirect)

指定されたpathredirectフラグを用いて新しいインスタンスをコンストラクトします。

Construct a new instance with the specified path and redirect flag.

パラメータ:
path - このインスタンスに設定するパス
@param path Path for this instance
redirect - このインスタンスに設定するリダイレクトフラグ
@param redirect Redirect flag for this instance

ActionForward

public ActionForward(java.lang.String name,
                     java.lang.String path,
                     boolean redirect)

指定されたnamepathそしてredirectフラグを用いて新しいインスタンスをコンストラクトします。

Construct a new instance with the specified name, path and redirect flag.

パラメータ:
name - このインスタンスの名前
@param name Name of this instance
path - このインスタンスに設定するパス
@param path Path for this instance
redirect - このインスタンスに設定するリダイレクトフラグ
@param redirect Redirect flag for this instance

ActionForward

public ActionForward(java.lang.String name,
                     java.lang.String path,
                     boolean redirect,
                     boolean contextRelative)
推奨されていません。 contextRelativeよりもモジュールを使って下さい。
@deprecated Use module rather than contextRelative

指定された値を用いて新しいインスタンスをコンストラクトします。

Construct a new instance with the specified values.

パラメータ:
name - このインスタンスの名前
@param name Name of this instance
path - このインスタンスに設定するパス
@param path Path for this instance
redirect - このインスタンスに設定するリダイレクトフラグ
@param redirect Redirect flag for this instance
contextRelative - このインスタンスに設定するコンテキスト相対フラグ
@param contextRelative Context relative flag for this instance

ActionForward

public ActionForward(java.lang.String name,
                     java.lang.String path,
                     boolean redirect,
                     java.lang.String module)

指定された値を用いて新しいインスタンスをコンストラクトします。

Construct a new instance with the specified values.

パラメータ:
name - このインスタンスの名前
@param name Name of this forward
path - コントローラがフォワードまたはリダイレクトすべきパス
@param path Path to which control should be forwarded or redirected
redirect - リダイレクトすべきかどうか
@param redirect Should we do a redirect?
module - もしあれば、モジュールのプレフィックス
@param module Module prefix, if any

ActionForward

public ActionForward(ActionForward copyMe)

別のActionForwardの値を基に新しいインスタンスをコンストラクトします。

Construct a new instance based on the values of another ActionForward.

パラメータ:
copyMe - コピーするActionForwardインスタンス
@param copyMe An ActionForward instance to copy
導入されたバージョン:
Struts 1.2.1


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