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

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

An ActionForward represents a destination to which the controller servlet, ActionServlet, 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.

Struts1.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: 2003/12/16 16:46:16 $
作成者:
Craig R. McClanahan
関連項目:
直列化された形式
翻訳者:
おかだひでひさ, 横田 健彦
翻訳状況:
初稿(校正者募集中)
翻訳更新日:
2003/12/15

フィールドの概要
 
クラス org.apache.struts.config.ForwardConfig から継承したフィールド
configured, contextRelative, name, path, redirect
 
コンストラクタの概要
ActionForward()
          デフォルトの値を用いて新しいインスタンスを構築します。
ActionForward(java.lang.String path)
          指定されたパスを用いて新しいインスタンスを構築します。
ActionForward(java.lang.String path, boolean redirect)
          指定されたパスとりダイレクトフラグを用いて新しいインスタンスを構築します。
ActionForward(java.lang.String name, java.lang.String path, boolean redirect)
          指定されたパスとりダイレクトフラグを用いて新しいインスタンスを構築します。
ActionForward(java.lang.String name, java.lang.String path, boolean redirect, boolean contextRelative)
          指定された値を用いて新しいインスタンスを構築します。
 
クラス org.apache.struts.config.ForwardConfig から継承したメソッド
freeze, getContextRelative, getName, getPath, getRedirect, setContextRelative, setName, setPath, setRedirect, toString
 
クラス java.lang.Object から継承したメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

コンストラクタの詳細

ActionForward

public ActionForward()
デフォルトの値を用いて新しいインスタンスを構築します。 {@primary Construct a new instance with default values.]


ActionForward

public ActionForward(java.lang.String path)
指定されたパスを用いて新しいインスタンスを構築します。
Construct a new instance with the specified path.

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

ActionForward

public ActionForward(java.lang.String path,
                     boolean redirect)
指定されたパスとりダイレクトフラグを用いて新しいインスタンスを構築します。
Construct a new instance with the specified path and redirect flag.

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

ActionForward

public ActionForward(java.lang.String name,
                     java.lang.String path,
                     boolean redirect)
指定されたパスとりダイレクトフラグを用いて新しいインスタンスを構築します。 {@primary Construct a new instance with the specified path and redirect flag.

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

ActionForward

public ActionForward(java.lang.String name,
                     java.lang.String path,
                     boolean redirect,
                     boolean contextRelative)
指定された値を用いて新しいインスタンスを構築します。
Construct a new instance with the specified values.

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


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