org.apache.struts.action
クラス RequestProcessor

java.lang.Object
  拡張org.apache.struts.action.RequestProcessor
直系の既知のサブクラス:
TilesRequestProcessor

public class RequestProcessor
extends java.lang.Object

RequestProcessor は、 コンテナから各サーブレットリクエストを受け取り、 ActionServlet が実行する処理ロジックを含みます。 リクエスト処理の振る舞いはこのクラスをサブクラス化し、 振る舞いを変えたいメソッドをオーバライドすることでカスタマイズできます。

RequestProcessor contains the processing logic that the @link(ActionServlet) performs as it receives each servlet request from the container. You can customize the request processing behavior by subclassing this class and overriding the method(s) whose behavior you are interested in changing.

導入されたバージョン:
Struts 1.1
バージョン:
$Revision: 1.5 $ $Date: 2005/02/11 03:27:19 $
翻訳者:
棚澤 昌幸
翻訳状況:
初稿(校正者募集中)

フィールドの概要
protected  java.util.HashMap actions
          生成そして初期化された、 Action インスタンスのセット。
static java.lang.String INCLUDE_PATH_INFO
          RequestDispatcher.include 要求を処理する間、 パス情報が格納されるリクエスト属性。
static java.lang.String INCLUDE_SERVLET_PATH
          RequestDispatcher.include 要求を処理する間、 サーブレットパス情報が格納されるリクエスト属性。
protected static org.apache.commons.logging.Log log
          Commons Logging のインスタンス。
protected  ModuleConfig moduleConfig
          関連付けられた ModuleConfiguration
protected  ActionServlet servlet
          関連付けられたサーブレット。
 
コンストラクタの概要
RequestProcessor()
           
 
メソッドの概要
 void destroy()
          アプリケーション終了の準備として消去を行います。
protected  void doForward(java.lang.String uri, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          RequestDispatcher を使用して指定された URI にフォワードします。
protected  void doInclude(java.lang.String uri, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          RequestDispatcher を使用して指定された URI インクルードします。
protected  MessageResources getInternal()
          内部にメッセージの文字列を含む MessageResources インスタンスを返します。
protected  javax.servlet.ServletContext getServletContext()
          実行しているウェッブアプリケーションのための ServletContext を返します。
 void init(ActionServlet servlet, ModuleConfig moduleConfig)
          リクエスト処理インスタンスを初期化します。
protected  void internalModuleRelativeForward(java.lang.String uri, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          リクエストディスパッチャーを使用して、 指定された URI へのフォワードとモジュールを関係付けます。
protected  void internalModuleRelativeInclude(java.lang.String uri, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          リクエストディスパッチャーを使用して、 指定された URI に含めるモジュールを関係付けます。
protected  void log(java.lang.String message)
          推奨されていません。 この替わりに commons-logging を使用して下さい。 このメソッドは Struts 1.2. より後に削除されます。
@deprecated Use commons-logging instead. This will be removed in a release after Struts 1.2.
protected  void log(java.lang.String message, java.lang.Throwable exception)
          推奨されていません。 この替わりに commons-logging を使用して下さい。 このメソッドは Struts 1.2. より後に削除されます。
@deprecated Use commons-logging instead. This will be removed in a release after Struts 1.2.
 void process(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          HttpServletRequest を処理して該当の HttpServletResponse を生成します。
protected  Action processActionCreate(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, ActionMapping mapping)
          このリクエストを処理するために使用される Action インスタンスを返します。
protected  ActionForm processActionForm(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, ActionMapping mapping)
          必要に応じ生成し維持しているマッピングに関連付けられた ActionForm を回収して返します。
protected  ActionForward processActionPerform(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, Action action, ActionForm form, ActionMapping mapping)
          このリクエストを扱うことを指定された Action インスタンスへの問い合わせです。
protected  void processCachedMessages(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          メッセージの isAccessed メソッドが真となる場合、 Globals.MESSAGE_KEY の中のセッションにある全ての ActionMessages を削除します。
protected  void processContent(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          要求された全てのレスポンスに対し、 (任意の文字エンコーディングとなる) デフォルトコンテントタイプを設定します。
protected  ActionForward processException(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, java.lang.Exception exception, ActionForm form, ActionMapping mapping)
          例外を扱うために例外ハンドラーへ問い合わせを行います。
protected  boolean processForward(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, ActionMapping mapping)
          (もしあれば)このマッピングによってリクエストされたフォワード先へ処理が渡されます。
protected  void processForwardConfig(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, ForwardConfig forward)
          指定機構により、指定先へフォワードまたはリダイレクトします。
protected  boolean processInclude(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, ActionMapping mapping)
          (もしあれば)このマッピングによるリクエストされた内部で処理します。
protected  void processLocale(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          リクエストされた場合、ユーザの Locale を自動的に選定します。
protected  ActionMapping processMapping(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, java.lang.String path)
          このリクエストの選択パスを処理するために使用されるマッピングを選定します。
protected  javax.servlet.http.HttpServletRequest processMultipart(javax.servlet.http.HttpServletRequest request)
          マルチパートリクエストの場合、 特別なラッパでラップします。
protected  void processNoCache(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          リクエストされた場合、全てのレスポンスに no-cache ヘッダを設定します。
protected  java.lang.String processPath(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          遷移するための ActionMapping を選定するため使用する (リクエスト URI からの) パスコンポーネントを確認して返します。
protected  void processPopulate(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, ActionForm form, ActionMapping mapping)
          このリクエストに含まれるリクエストパラメータから、 指定された ActionForm インスタンスのプロパティを作成します。
protected  boolean processPreprocess(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          サブクラスにより処理内容をオーバライドすることで、 多目的な前処理を行うことができます。
protected  boolean processRoles(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, ActionMapping mapping)
          アクションがセキュリティ上役割により保護されている場合、 現在のユーザが少なくともその中の一人であるかを確認します。
protected  boolean processValidate(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, ActionForm form, ActionMapping mapping)
          このリクエストがキャンセルされず、 かつリクエストの ActionMapping 検証が無効でない場合、 ActionForm で指定された validate メソッドが呼ばれ、 エラーがあった際には入力元のパスにフォワードされます。
 
クラス java.lang.Object から継承したメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

フィールドの詳細

INCLUDE_PATH_INFO

public static final java.lang.String INCLUDE_PATH_INFO

RequestDispatcher.include 要求を処理する間、 パス情報が格納されるリクエスト属性。

The request attribute under which the path information is stored for processing during a RequestDispatcher.include call.

関連項目:
定数フィールド値

INCLUDE_SERVLET_PATH

public static final java.lang.String INCLUDE_SERVLET_PATH

RequestDispatcher.include 要求を処理する間、 サーブレットパス情報が格納されるリクエスト属性。

The request attribute under which the servlet path information is stored for processing during a RequestDispatcher.include call.

関連項目:
定数フィールド値

actions

protected java.util.HashMap actions

生成そして初期化された、 Action インスタンスのセット。 Action クラスの省略していない Java クラス名をキーとします。

The set of Action instances that have been created and initialized, keyed by the fully qualified Java class name of the Action class.


moduleConfig

protected ModuleConfig moduleConfig

関連付けられた ModuleConfiguration

The ModuleConfiguration with which we are associated.


log

protected static org.apache.commons.logging.Log log

Commons Logging のインスタンス。

Commons Logging instance.


servlet

protected ActionServlet servlet

関連付けられたサーブレット。

The servlet with which we are associated.

コンストラクタの詳細

RequestProcessor

public RequestProcessor()
メソッドの詳細

destroy

public void destroy()

アプリケーション終了の準備として消去を行います。

Clean up in preparation for a shutdown of this application.


init

public void init(ActionServlet servlet,
                 ModuleConfig moduleConfig)
          throws javax.servlet.ServletException

リクエスト処理インスタンスを初期化します。

Initialize this request processor instance.

パラメータ:
servlet - 関連付けられた ActionServlet
@param servlet The ActionServlet we are associated with
moduleConfig - 関連付けられた ModuleConfig
@param moduleConfig The ModuleConfig we are associated with.
例外:
javax.servlet.ServletException - 初期化中にエラーが生じた場合
@throws ServletException If an error occor during initialization

process

public void process(javax.servlet.http.HttpServletRequest request,
                    javax.servlet.http.HttpServletResponse response)
             throws java.io.IOException,
                    javax.servlet.ServletException

HttpServletRequest を処理して該当の HttpServletResponse を生成します。 または、他のリソースに渡します。

Process an HttpServletRequest and create the corresponding HttpServletResponse or dispatch to another resource.

パラメータ:
request - 関連付けられたサーブレットリクエスト
@param request The servlet request we are processing
response - 生成するサーブレットリクエスト
@param response The servlet response we are creating
例外:
java.io.IOException - 入出力エラーが生じた場合
@exception IOException if an input/output error occurs
javax.servlet.ServletException - 処理で例外が生じた場合
@exception ServletException if a processing exception occurs

processActionCreate

protected Action processActionCreate(javax.servlet.http.HttpServletRequest request,
                                     javax.servlet.http.HttpServletResponse response,
                                     ActionMapping mapping)
                              throws java.io.IOException

このリクエストを処理するために使用される Action インスタンスを返します。 必要に応じて新しいインスタンスを作成します。

Return an Action instance that will be used to process the current request, creating a new one if necessary.

パラメータ:
request - 関連付けられたサーブレットリクエスト
@param request The servlet request we are processing
response - 生成するサーブレットリクエスト
@param response The servlet response we are creating
mapping - 使用するマッピング
@param mapping The mapping we are using
例外:
java.io.IOException - 入出力エラーが生じた場合
@exception IOException if an input/output error occurs

processActionForm

protected ActionForm processActionForm(javax.servlet.http.HttpServletRequest request,
                                       javax.servlet.http.HttpServletResponse response,
                                       ActionMapping mapping)

必要に応じ生成し維持しているマッピングに関連付けられた ActionForm を回収して返します。 マッピングに関連付けられた ActionForm が無い場合、 null を返します。

Retrieve and return the ActionForm associated with this mapping, creating and retaining one if necessary. If there is no ActionForm associated with this mapping, return null.

パラメータ:
request - 関連付けたサーブレットリクエスト
@param request The servlet request we are processing
response - 生成するサーブレットレスポンス
@param response The servlet response we are creating
mapping - 使用するマッピング
@param mapping The mapping we are using

processForwardConfig

protected void processForwardConfig(javax.servlet.http.HttpServletRequest request,
                                    javax.servlet.http.HttpServletResponse response,
                                    ForwardConfig forward)
                             throws java.io.IOException,
                                    javax.servlet.ServletException

指定機構により、指定先へフォワードまたはリダイレクトします。 このメソッドは、 ActionForward の代わりに ForwardConfig オブジェクトを使用します。

Forward or redirect to the specified destination, by the specified mechanism. This method uses a ForwardConfig object instead an ActionForward.

パラメータ:
request - 処理するサーブレットリクエスト
@param request The servlet request we are processing
response - 生成するサーブレットレスポンス
@param response The servlet response we are creating
forward - 次に行く先を制御する ForwardConfig
@param forward The ForwardConfig controlling where we go next
例外:
java.io.IOException - 入出力エラーが生じた場合
@exception IOException if an input/output error occurs
javax.servlet.ServletException - サーブレット例外が生じた場合
@exception ServletException if a servlet exception occurs

processActionPerform

protected ActionForward processActionPerform(javax.servlet.http.HttpServletRequest request,
                                             javax.servlet.http.HttpServletResponse response,
                                             Action action,
                                             ActionForm form,
                                             ActionMapping mapping)
                                      throws java.io.IOException,
                                             javax.servlet.ServletException

このリクエストを扱うことを指定された Action インスタンスへの問い合わせです。 (もしあれば)さらに処理を行うため呼ばれた Action により戻された ActionForward インスタンスを返します。

Ask the specified Action instance to handle this request. Return the ActionForward instance (if any) returned by the called Action for further processing.

パラメータ:
request - 処理を行うサーブレットリクエスト
@param request The servlet request we are processing
response - 生成するサーブレットレスポンス
@param response The servlet response we are creating
action - 使用されるActionインスタンス
@param action The Action instance to be used
form - この Action に渡される ActionForm インスタンス
@param form The ActionForm instance to pass to this Action
mapping - この Action に渡される ActionMapping のインスタンス
@param mapping The ActionMapping instance to pass to this Action
例外:
java.io.IOException - 入出力エラーが生じた場合
@exception IOException if an input/output error occurs
javax.servlet.ServletException - サーブレット例外が生じた場合
@exception ServletException if a servlet exception occurs

processCachedMessages

protected void processCachedMessages(javax.servlet.http.HttpServletRequest request,
                                     javax.servlet.http.HttpServletResponse response)

メッセージの isAccessed メソッドが真となる場合、 Globals.MESSAGE_KEY の中のセッションにある全ての ActionMessages を削除します。 これよりメッセージは、セッションに格納され、 ある期間表示でき、そこから解除されることになります。

Removes any ActionMessages object stored in the session under Globals.MESSAGE_KEY if the messages' isAccessed method returns true. This allows messages to be stored in the session, display one time, and be released here.

パラメータ:
request - 処理を行うサーブレットリクエスト
@param request The servlet request we are processing.
response - 生成するサーブレットレスポンス
@param response The servlet response we are creating.
導入されたバージョン:
Struts 1.2

processContent

protected void processContent(javax.servlet.http.HttpServletRequest request,
                              javax.servlet.http.HttpServletResponse response)

要求された全てのレスポンスに対し、 (任意の文字エンコーディングとなる) デフォルトコンテントタイプを設定します。 注意 - RequestDispatcher.forward が最後に呼ばれた場合、 このヘッダは自動的にオーバライドされます。

Set the default content type (with optional character encoding) for all responses if requested. NOTE - This header will be overridden automatically if a RequestDispatcher.forward call is ultimately invoked.

パラメータ:
request - 処理を行うサーブレットリクエスト
@param request The servlet request we are processing
response - 生成するサーブレットレスポンス
@param response The servlet response we are creating

processException

protected ActionForward processException(javax.servlet.http.HttpServletRequest request,
                                         javax.servlet.http.HttpServletResponse response,
                                         java.lang.Exception exception,
                                         ActionForm form,
                                         ActionMapping mapping)
                                  throws java.io.IOException,
                                         javax.servlet.ServletException

例外を扱うために例外ハンドラーへ問い合わせを行います。 (もしあれば)呼ばれた ExceptionHandler により戻された ActionForward インスタンスを返します。

Ask our exception handler to handle the exception. Return the ActionForward instance (if any) returned by the called ExceptionHandler.

パラメータ:
request - 処理を行うサーブレットリクエスト
@param request The servlet request we are processing
response - 生成するサーブレットレスポンス
@param response The servlet response we are processing
exception - 扱う例外
@param exception The exception being handled
form - 処理を行う ActionForm
@param form The ActionForm we are processing
mapping - 使用する ActionMapping
@param mapping The ActionMapping we are using
例外:
java.io.IOException - 入出力エラーが生じた場合
@exception IOException if an input/output error occurs
javax.servlet.ServletException - サーブレット例外が生じた場合
@exception ServletException if a servlet exception occurs

processForward

protected boolean processForward(javax.servlet.http.HttpServletRequest request,
                                 javax.servlet.http.HttpServletResponse response,
                                 ActionMapping mapping)
                          throws java.io.IOException,
                                 javax.servlet.ServletException

(もしあれば)このマッピングによってリクエストされたフォワード先へ処理が渡されます。 標準処理が続く場合 true を返します。 また、このリクエストが既に処理された場合 false を返します。

Process a forward requested by this mapping (if any). Return true if standard processing should continue, or false if we have already handled this request.

パラメータ:
request - 処理を行うサーブレットリクエスト
@param request The servlet request we are processing
response - 生成するサーブレットレスポンス
@param response The servlet response we are creating
mapping - 使用する ActionMapping
@param mapping The ActionMapping we are using
例外:
java.io.IOException
javax.servlet.ServletException

processInclude

protected boolean processInclude(javax.servlet.http.HttpServletRequest request,
                                 javax.servlet.http.HttpServletResponse response,
                                 ActionMapping mapping)
                          throws java.io.IOException,
                                 javax.servlet.ServletException

(もしあれば)このマッピングによるリクエストされた内部で処理します。 標準処理が続く場合 true を返します。 また、このリクエストで既に処理された場合 false を返します。

Process an include requested by this mapping (if any). Return true if standard processing should continue, or false if we have already handled this request.

パラメータ:
request - 処理を行うサーブレットリクエスト
@param request The servlet request we are processing
response - 生成するサーブレットレスポンス
@param response The servlet response we are creating
mapping - 使用する ActionMapping
@param mapping The ActionMapping we are using
例外:
java.io.IOException
javax.servlet.ServletException

processLocale

protected void processLocale(javax.servlet.http.HttpServletRequest request,
                             javax.servlet.http.HttpServletResponse response)

リクエストされた場合、ユーザの Locale を自動的に選定します。 注意 - ロケール選定の設定は、 必要に応じた新たな HttpSession 作成の切っ掛けとなります。

Automatically select a Locale for the current user, if requested. NOTE - configuring Locale selection will trigger the creation of a new HttpSession if necessary.

パラメータ:
request - 処理を行うサーブレットリクエスト
@param request The servlet request we are processing
response - 生成するサーブレットレスポンス
@param response The servlet response we are creating

processMapping

protected ActionMapping processMapping(javax.servlet.http.HttpServletRequest request,
                                       javax.servlet.http.HttpServletResponse response,
                                       java.lang.String path)
                                throws java.io.IOException

このリクエストの選択パスを処理するために使用されるマッピングを選定します。 マッピングが見つけられない場合、 エラーレスポンスを生成して null を返します。

Select the mapping used to process the selection path for this request. If no mapping can be identified, create an error response and return null.

パラメータ:
request - 処理を行うサーブレットリクエスト
@param request The servlet request we are processing
response - 生成するサーブレットレスポンス
@param response The servlet response we are creating
path - マッピングを選定するためのリクエスト URI の一部
@param path The portion of the request URI for selecting a mapping
例外:
java.io.IOException - 入出力エラーが生じた場合
@exception IOException if an input/output error occurs

processMultipart

protected javax.servlet.http.HttpServletRequest processMultipart(javax.servlet.http.HttpServletRequest request)

マルチパートリクエストの場合、 特別なラッパでラップします。 その他の場合、リクエストをそのまま返します。

If this is a multipart request, wrap it with a special wrapper. Otherwise, return the request unchanged.

パラメータ:
request - 処理を行う HttpServletRequest
@param request The HttpServletRequest we are processing

processNoCache

protected void processNoCache(javax.servlet.http.HttpServletRequest request,
                              javax.servlet.http.HttpServletResponse response)

リクエストされた場合、全てのレスポンスに no-cache ヘッダを設定します。 注意 - RequestDispatcher.forward が最後に呼ばれた場合、 このヘッダは自動的にオーバライドされます。

Set the no-cache headers for all responses, if requested. NOTE - This header will be overridden automatically if a RequestDispatcher.forward call is ultimately invoked.

パラメータ:
request - 処理を行うサーブレットリクエスト
@param request The servlet request we are processing
response - 生成するサーブレットレスポンス
@param response The servlet response we are creating

processPath

protected java.lang.String processPath(javax.servlet.http.HttpServletRequest request,
                                       javax.servlet.http.HttpServletResponse response)
                                throws java.io.IOException

遷移するための ActionMapping を選定するため使用する (リクエスト URI からの) パスコンポーネントを確認して返します。 そのようなパスが確認できない場合、 エラーレスポンスを生成して null を返します。

Identify and return the path component (from the request URI) that we will use to select an ActionMapping with which to dispatch. If no such path can be identified, create an error response and return null.

パラメータ:
request - 処理を行うサーブレットリクエスト
@param request The servlet request we are processing
response - 生成するサーブレットレスポンス
@param response The servlet response we are creating
例外:
java.io.IOException - 入出力エラーが生じた場合
@exception IOException if an input/output error occurs

processPopulate

protected void processPopulate(javax.servlet.http.HttpServletRequest request,
                               javax.servlet.http.HttpServletResponse response,
                               ActionForm form,
                               ActionMapping mapping)
                        throws javax.servlet.ServletException

このリクエストに含まれるリクエストパラメータから、 指定された ActionForm インスタンスのプロパティを作成します。 付け加えると、 CancelTag により生成されたボタンでリクエストがサブミットされた場合 リクエスト属性 Globals.CANCEL_KEY が設定されます。

Populate the properties of the specified ActionForm instance from the request parameters included with this request. In addition, request attribute Globals.CANCEL_KEY will be set if the request was submitted with a button created by CancelTag.

パラメータ:
request - 処理を行うサーブレットリクエスト
@param request The servlet request we are processing
response - 生成するレスポンス
@param response The servlet response we are creating
form - 作成する ActionForm インスタンス
@param form The ActionForm instance we are populating
mapping - 使用する ActionMapping
@param mapping The ActionMapping we are using
例外:
javax.servlet.ServletException - RequestUtils.populate() メソッドにより例外がスローされた場合
@exception ServletException if thrown by RequestUtils.populate()

processPreprocess

protected boolean processPreprocess(javax.servlet.http.HttpServletRequest request,
                                    javax.servlet.http.HttpServletResponse response)

サブクラスにより処理内容をオーバライドすることで、 多目的な前処理を行うことができます。 標準処理が継続される場合 true を返します。 また、レスポンスが既に完成した場合 false を返します。 デフォルトの実装はありません。

General-purpose preprocessing hook that can be overridden as required by subclasses. Return true if you want standard processing to continue, or false if the response has already been completed. The default implementation does nothing.

パラメータ:
request - 処理を行うサーブレットリクエスト
@param request The servlet request we are processing
response - 生成するサーブレットレスポンス
@param response The servlet response we are creating

processRoles

protected boolean processRoles(javax.servlet.http.HttpServletRequest request,
                               javax.servlet.http.HttpServletResponse response,
                               ActionMapping mapping)
                        throws java.io.IOException,
                               javax.servlet.ServletException

アクションがセキュリティ上役割により保護されている場合、 現在のユーザが少なくともその中の一人であるかを確認します。 通常の処理が続く場合 true を返します。 また、適切なレスポンスが生成されて処理が終了する場合 false を返します。

If this action is protected by security roles, make sure that the current user possesses at least one of them. Return true to continue normal processing, or false if an appropriate response has been created and processing should terminate.

パラメータ:
request - 処理を行うサーブレットリクエスト
@param request The servlet request we are processing
response - 生成するサーブレットレスポンス
@param response The servlet response we are creating
mapping - 使用するマッピング
@param mapping The mapping we are using
例外:
java.io.IOException - 入出力エラーが生じた場合
@exception IOException if an input/output error occurs
javax.servlet.ServletException - サーブレット例外が生じた場合
@exception ServletException if a servlet exception occurs

processValidate

protected boolean processValidate(javax.servlet.http.HttpServletRequest request,
                                  javax.servlet.http.HttpServletResponse response,
                                  ActionForm form,
                                  ActionMapping mapping)
                           throws java.io.IOException,
                                  javax.servlet.ServletException

このリクエストがキャンセルされず、 かつリクエストの ActionMapping 検証が無効でない場合、 ActionForm で指定された validate メソッドが呼ばれ、 エラーがあった際には入力元のパスにフォワードされます。 処理が続く場合、true を返します。 また、入力フォームに戻された場合、 false を返します。

If this request was not cancelled, and the request's {@link ActionMapping} has not disabled validation, call the validate method of the specified {@link ActionForm}, and forward to the input path if there were any errors. Return true if we should continue processing, or false if we have already forwarded control back to the input form.

パラメータ:
request - 処理を行うサーブレットリクエスト
@param request The servlet request we are processing
response - 生成するサーブレットレスポンス
@param response The servlet response we are creating
form - 作成するActionFormインスタンス
@param form The ActionForm instance we are populating
mapping - 使用する ActionMapping
@param mapping The ActionMapping we are using
例外:
java.io.IOException - 入出力エラーが生じた場合
@exception IOException if an input/output error occurs
javax.servlet.ServletException - サーブレット例外が生じた場合
@exception ServletException if a servlet exception occurs

internalModuleRelativeForward

protected void internalModuleRelativeForward(java.lang.String uri,
                                             javax.servlet.http.HttpServletRequest request,
                                             javax.servlet.http.HttpServletResponse response)
                                      throws java.io.IOException,
                                             javax.servlet.ServletException

リクエストディスパッチャーを使用して、 指定された URI へのフォワードとモジュールを関係付けます。 URI はカレントモジュールに関係します。 実際の URI はモジュールの名前にプレフィックスを付けて導出されます。

Do a module relative forward to specified URI using request dispatcher. URI is relative to the current module. The real URI is compute by prefixing the module name.

このメソッドはパッケージ内で使用され、 パブリック API の部分はありません。 サブクラスの中で使わないことをお勧めします。

This method is used internally and is not part of the public API. It is advised to not use it in subclasses.

パラメータ:
uri - フォワードのためにモジュールと関連付けた URI
@param uri Module-relative URI to forward to
request - このページのリクエスト
@param request Current page request
response - このページのレスポンス
@param response Current page response
例外:
java.io.IOException
javax.servlet.ServletException
導入されたバージョン:
Struts 1.1

internalModuleRelativeInclude

protected void internalModuleRelativeInclude(java.lang.String uri,
                                             javax.servlet.http.HttpServletRequest request,
                                             javax.servlet.http.HttpServletResponse response)
                                      throws java.io.IOException,
                                             javax.servlet.ServletException

リクエストディスパッチャーを使用して、 指定された URI に含めるモジュールを関係付けます。 URI はこのモジュールに関係します。 実際の URI はモジュールの名前にプレフィックスを付けて導出されます。

Do a module relative include to specified URI using request dispatcher. URI is relative to the current module. The real URI is compute by prefixing the module name.

このメソッドは内部で使われ、 パブリック API ではありません。 サブクラスでは使わなようにして下さい。

This method is used internally and is not part of the public API. It is advised to not use it in subclasses.

パラメータ:
uri - 内部に含めるためにモジュールと関係付ける URI
@param uri Module-relative URI to include
request - このページのリクエスト
@param request Current page request
response - このページのレスポンス
@param response Current page response
例外:
java.io.IOException
javax.servlet.ServletException
導入されたバージョン:
Struts 1.1

doForward

protected void doForward(java.lang.String uri,
                         javax.servlet.http.HttpServletRequest request,
                         javax.servlet.http.HttpServletResponse response)
                  throws java.io.IOException,
                         javax.servlet.ServletException

RequestDispatcher を使用して指定された URI にフォワードします。 フォワードが必要となる全ての内部メソッドによってこのメソッドは使われます

Do a forward to specified URI using a RequestDispatcher. This method is used by all internal method needing to do a forward.

パラメータ:
uri - フォワードするためのコンテクストと関連づける URI
@param uri Context-relative URI to forward to
request - このページのリクエスト
@param request Current page request
response - このページのレスポンス
@param response Current page response
例外:
java.io.IOException
javax.servlet.ServletException
導入されたバージョン:
Struts 1.1

doInclude

protected void doInclude(java.lang.String uri,
                         javax.servlet.http.HttpServletRequest request,
                         javax.servlet.http.HttpServletResponse response)
                  throws java.io.IOException,
                         javax.servlet.ServletException

RequestDispatcher を使用して指定された URI インクルードします。 このメソッドはインクルードする事が必要となる全ての内部メソッドにより使用されます。

Do an include of specified URI using a RequestDispatcher. This method is used by all internal method needing to do an include.

パラメータ:
uri - インクルードするためのコンテクストに関連付ける URI
@param uri Context-relative URI to include
request - このページのリクエスト
@param request Current page request
response - このページのレスポンス
@param response Current page response
例外:
java.io.IOException
javax.servlet.ServletException
導入されたバージョン:
Struts 1.1

getInternal

protected MessageResources getInternal()

内部にメッセージの文字列を含む MessageResources インスタンスを返します。

Return the MessageResources instance containing our internal message strings.


getServletContext

protected javax.servlet.ServletContext getServletContext()

実行しているウェッブアプリケーションのための ServletContext を返します。

Return the ServletContext for the web application in which we are running.


log

protected void log(java.lang.String message)
推奨されていません。 この替わりに commons-logging を使用して下さい。 このメソッドは Struts 1.2. より後に削除されます。
@deprecated Use commons-logging instead. This will be removed in a release after Struts 1.2.

このウェッブアプリケーションのサーブレットコンテクストログのための指定されたメッセージを記録します。

Log the specified message to the servlet context log for this web application.

パラメータ:
message - 記録されるメッセージ
@param message The message to be logged

log

protected void log(java.lang.String message,
                   java.lang.Throwable exception)
推奨されていません。 この替わりに commons-logging を使用して下さい。 このメソッドは Struts 1.2. より後に削除されます。
@deprecated Use commons-logging instead. This will be removed in a release after Struts 1.2.

このウェッブアプリケーションのサーブレットコンテクストログのための指定されたメッセージと例外を記録します。

Log the specified message and exception to the servlet context log for this web application.

パラメータ:
message - 記録されるメッセージ
@param message The message to be logged
exception - 記録される例外
@param exception The exception to be logged


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