|
||||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||
java.lang.Objectorg.apache.struts.config.ForwardConfig
org.apache.struts.action.ActionForward
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.
pathの値を(モジュール相対の代わりに)コンテキスト相対で解釈するべきかどうかです。
[false]path
value be interpreted as context-relative (instead of
module-relative, if it starts with a '/' character? [false]ActionMappingとの関係からこのインスタンスを探し出す時に用いる論理名です。ActionMapping.
HttpServletResponse.sendRedirect()を呼ぶ場合、
trueを設定し、
そうでなければfalseを設定します。
[false]true if the controller
servlet should call HttpServletResponse.sendRedirect()
on the associated path; otherwise false. [false]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.
| フィールドの概要 |
| クラス 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)
指定された pathとredirectフラグを用いて新しいインスタンスをコンストラクトします。 |
|
ActionForward(java.lang.String name,
java.lang.String path,
boolean redirect)
指定された name、
pathそして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 |
| コンストラクタの詳細 |
public ActionForward()
デフォルトの値を用いて新しいインスタンスをコンストラクトします。
Construct a new instance with default values.
public ActionForward(java.lang.String path)
指定されたパスを用いて新しいインスタンスをコンストラクトします。
Construct a new instance with the specified path.
path - このインスタンスに設定するパス
public ActionForward(java.lang.String path,
boolean redirect)
指定されたpathとredirectフラグを用いて新しいインスタンスをコンストラクトします。
Construct a new instance with the specified
path and redirect flag.
path - このインスタンスに設定するパス
redirect - このインスタンスに設定するリダイレクトフラグ
public ActionForward(java.lang.String name,
java.lang.String path,
boolean redirect)
指定されたname、
pathそしてredirectフラグを用いて新しいインスタンスをコンストラクトします。
Construct a new instance with the specified name,
path and redirect flag.
name - このインスタンスの名前
path - このインスタンスに設定するパス
redirect - このインスタンスに設定するリダイレクトフラグ
public ActionForward(java.lang.String name,
java.lang.String path,
boolean redirect,
boolean contextRelative)
指定された値を用いて新しいインスタンスをコンストラクトします。
Construct a new instance with the specified values.
name - このインスタンスの名前
path - このインスタンスに設定するパス
redirect - このインスタンスに設定するリダイレクトフラグ
contextRelative - このインスタンスに設定するコンテキスト相対フラグ
public ActionForward(java.lang.String name,
java.lang.String path,
boolean redirect,
java.lang.String module)
指定された値を用いて新しいインスタンスをコンストラクトします。
name - このインスタンスの名前
path - コントローラがフォワードまたはリダイレクトすべきパス
redirect - リダイレクトすべきかどうか
module - もしあれば、モジュールのプレフィックス
public ActionForward(ActionForward copyMe)
別のActionForwardの値を基に新しいインスタンスをコンストラクトします。
Construct a new instance based on the values of another ActionForward.
copyMe - コピーするActionForwardインスタンス
|
||||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||