org.apache.struts.action
クラス ActionServletWrapper

java.lang.Object
  拡張org.apache.struts.action.ActionServletWrapper

public class ActionServletWrapper
extends java.lang.Object

ActionServletが持つメソッドのうち、 他のオブジェクトが必要とするメソッドのみを公開するためのラッパです。
ActionFormと同時に使用する場合は、 プロパティの自動設定の場合には利用出来るpublicなゲッターやセッターが、 オブジェクトを返さないようにサブクラスで注意する必要があります。

Provide a wrapper around an ActionServlet to expose only those methods needed by other objects. When used with an ActionForm, subclasses must be careful that they do not return an object with public getters and setters that could be exploited by automatic population of properties.

導入されたバージョン:
Struts 1.0.1
バージョン:
$Revision: 1.4 $ $Date: 2003/12/16 16:46:16 $
作成者:
Craig R. McClanahan, Ted Husted
翻訳者:
田中 良浩, 横田 健彦
翻訳状況:
初稿(校正者募集中)
翻訳更新日:
2003/12/16

フィールドの概要
protected  ActionServlet servlet
          割り当てられた制御用サーブレットのインスタンスです。
 
コンストラクタの概要
ActionServletWrapper(ActionServlet servlet)
          Create object and set servlet property.
 
メソッドの概要
 void log(java.lang.String message)
          Log message.
 void log(java.lang.String message, int level)
          推奨されていません。 ロギングは今ではCommons Loggingを使用すべきです。
Logging should now use the commons logging
 void setServletFor(MultipartRequestHandler object)
          サーブレットをMultipartRequestHandlerに設定します。
 
クラス java.lang.Object から継承したメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

フィールドの詳細

servlet

protected transient ActionServlet servlet
割り当てられた制御用サーブレットのインスタンスです。
The controller servlet instance to which we are attached.

コンストラクタの詳細

ActionServletWrapper

public ActionServletWrapper(ActionServlet servlet)
Create object and set servlet property.

パラメータ:
servlet - ActionServlet to wrap
メソッドの詳細

log

public void log(java.lang.String message,
                int level)
推奨されていません。 ロギングは今ではCommons Loggingを使用すべきです。
Logging should now use the commons logging

このサーブレットに対する現在のデバッグの詳細レベルがlevelの値と等しいか高く設定されている場合、 指定のメッセージをログ出力します。それ以外ではメッセージを無視します。
Log the specified message if the current debugging detail level for this servlet has been set to an equal or higher value. Otherwise, ignore this message.

パラメータ:
message - ログ出力するメッセージ
Message to be logged
level - このメッセージのデバッグの詳細レベル
Debugging detail level of this message

log

public void log(java.lang.String message)
Log message.

パラメータ:
message -

setServletFor

public void setServletFor(MultipartRequestHandler object)
サーブレットをMultipartRequestHandlerに設定します。
Set servlet to a MultipartRequestHandler.

パラメータ:
object - MultipartRequestHandler
The MultipartRequestHandler
[未解決]setServletメソッドのための"setServlet"インタフェースやイントロスペクションを基にすべきか? それとも、好きなように単に型を追加する方が安全か?
:FIXME: Should this be based on an "setServlet" interface or introspection for a setServlet method? Or, is it safer to just add the types we want as we want them?


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