org.apache.struts.config
クラス ForwardConfig

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

public class ForwardConfig
extends java.lang.Object
implements java.io.Serializable

A JavaBean representing the configuration information of a <forward> element from a Struts configuration file.

導入されたバージョン:
Struts 1.1
バージョン:
$Revision: 1.1 $ $Date: 2004/10/20 03:26:41 $
関連項目:
直列化された形式

フィールドの概要
protected  boolean configured
          Has this component been completely configured?
protected  boolean contextRelative
          推奨されていません。 Use module property instead; will be removed in a release following 1.2.0.
protected  java.lang.String module
          The prefix of the module to which this ForwardConfig entry points, which must start with a slash ("/") character.
protected  java.lang.String name
          The unique identifier of this forward, which is used to reference it in Action classes.
protected  java.lang.String path
          The URL to which this ForwardConfig entry points, which must start with a slash ("/") character.
protected  boolean redirect
          Should a redirect be used to transfer control to the specified path?
 
コンストラクタの概要
ForwardConfig()
          Construct a new instance with default values.
ForwardConfig(java.lang.String name, java.lang.String path, boolean redirect)
          Construct a new instance with the specified values.
ForwardConfig(java.lang.String name, java.lang.String path, boolean redirect, boolean contextRelative)
          推奨されていません。 Use module rather than contextRelative
ForwardConfig(java.lang.String name, java.lang.String path, boolean redirect, java.lang.String module)
          Construct a new instance with the specified values.
 
メソッドの概要
 void freeze()
          Freeze the configuration of this component.
 boolean getContextRelative()
          推奨されていません。 Use module property instead; will be removed in a release following 1.2.0.
 java.lang.String getModule()
           
 java.lang.String getName()
           
 java.lang.String getPath()
           
 boolean getRedirect()
           
 void setContextRelative(boolean contextRelative)
          推奨されていません。 Use module property instead; will be removed in a release following 1.2.0.
 void setModule(java.lang.String module)
           
 void setName(java.lang.String name)
           
 void setPath(java.lang.String path)
           
 void setRedirect(boolean redirect)
           
 java.lang.String toString()
          Return a String representation of this object.
 
クラス java.lang.Object から継承したメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

フィールドの詳細

configured

protected boolean configured
Has this component been completely configured?


contextRelative

protected boolean contextRelative
推奨されていません。 Use module property instead; will be removed in a release following 1.2.0.

Should the value of the path property be considered context-relative if it starts with a slash (and therefore not prefixed with the module prefix?


name

protected java.lang.String name
The unique identifier of this forward, which is used to reference it in Action classes.


path

protected java.lang.String path

The URL to which this ForwardConfig entry points, which must start with a slash ("/") character. It is interpreted according to the following rules:


module

protected java.lang.String module

The prefix of the module to which this ForwardConfig entry points, which must start with a slash ("/") character.


redirect

protected boolean redirect
Should a redirect be used to transfer control to the specified path?

コンストラクタの詳細

ForwardConfig

public ForwardConfig()
Construct a new instance with default values.


ForwardConfig

public ForwardConfig(java.lang.String name,
                     java.lang.String path,
                     boolean redirect)
Construct a new instance with the specified values.

パラメータ:
name - Name of this forward
path - Path to which control should be forwarded or redirected
redirect - Should we do a redirect?

ForwardConfig

public ForwardConfig(java.lang.String name,
                     java.lang.String path,
                     boolean redirect,
                     boolean contextRelative)
推奨されていません。 Use module rather than contextRelative

Construct a new instance with the specified values.

パラメータ:
name - Name of this forward
path - Path to which control should be forwarded or redirected
redirect - Should we do a redirect?
contextRelative - Is this path context relative?

ForwardConfig

public ForwardConfig(java.lang.String name,
                     java.lang.String path,
                     boolean redirect,
                     java.lang.String module)
Construct a new instance with the specified values.

パラメータ:
name - Name of this forward
path - Path to which control should be forwarded or redirected
redirect - Should we do a redirect?
module - Module prefix, if any
メソッドの詳細

getContextRelative

public boolean getContextRelative()
推奨されていません。 Use module property instead; will be removed in a release following 1.2.0.


setContextRelative

public void setContextRelative(boolean contextRelative)
推奨されていません。 Use module property instead; will be removed in a release following 1.2.0.


getName

public java.lang.String getName()

setName

public void setName(java.lang.String name)

getPath

public java.lang.String getPath()

setPath

public void setPath(java.lang.String path)

getModule

public java.lang.String getModule()

setModule

public void setModule(java.lang.String module)

getRedirect

public boolean getRedirect()

setRedirect

public void setRedirect(boolean redirect)

freeze

public void freeze()
Freeze the configuration of this component.


toString

public java.lang.String toString()
Return a String representation of this object.



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