wisdom.core.application
クラス RuntimeContext

java.lang.Object
  拡張wisdom.core.CoreObject
      拡張wisdom.core.application.RuntimeContext

public class RuntimeContext
extends CoreObject

アプリケーションの実行中に作成されたオブジェクト、wisdomx.core.applicationパッケージ内の実装クラスを取得するためのクラス
おもに転送後のJSP内でwisdomで作成されたオブジェクトに対してアクセスするための静的メソッドを集めたクラスです。

バージョン:
1
作成者:
Takao Kouda

コンストラクタの概要
RuntimeContext()
           
 
メソッドの概要
static java.lang.String getContextPath(javax.servlet.http.HttpServletRequest req)
          実行中のサーブレット・コンテキストパスを取得します。
static IRequestParser getRequestParser(javax.servlet.http.HttpServletRequest req)
          forwardされたJSPで、IRequestParserのインスタンスを取得します。
static IRequestParser getRequestParserWithSessionCheck(javax.servlet.http.HttpServletRequest req)
          forwardされたJSPで、IRequestParserのインスタンスを取得します。
static IStringValidator getStringValidator()
          IStringValidatorのインスタンスを取得します。
static IUserSession getUserSession(javax.servlet.http.HttpServletRequest req)
          forwardされたJSPで、IUserSessionのインスタンスを取得します。
 
クラス java.lang.Object から継承したメソッド
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

コンストラクタの詳細

RuntimeContext

public RuntimeContext()
メソッドの詳細

getRequestParserWithSessionCheck

public static IRequestParser getRequestParserWithSessionCheck(javax.servlet.http.HttpServletRequest req)
                                                       throws ParameterNotFoundException,
                                                              SessionTimeOutedException
forwardされたJSPで、IRequestParserのインスタンスを取得します。
このメソッドはRunTimeServletの実行中に生成されたIRequestParserのインスタンスを取得します。 したがって、RunTimeServletの実行後以外のJSPでこのメソッドを実行するとParameterNotFoundExceptionが 送出されます。
このメソッドはログインしているか否かを検査します。ログインしていない場合、SessionTimeOutedExceptionが 送出されます。

パラメータ:
req - HttpServletRequestのインスタンス
例外:
ParameterNotFoundException
SessionTimeOutedException

getRequestParser

public static IRequestParser getRequestParser(javax.servlet.http.HttpServletRequest req)
                                       throws ParameterNotFoundException
forwardされたJSPで、IRequestParserのインスタンスを取得します。
このメソッドはRunTimeServletの実行中に生成されたIRequestParserのインスタンスを取得します。 したがって、RunTimeServletの実行後以外のJSPでこのメソッドを実行するとParameterNotFoundExceptionが 送出されます。

パラメータ:
req - HttpServletRequestのインスタンス
例外:
ParameterNotFoundException

getUserSession

public static IUserSession getUserSession(javax.servlet.http.HttpServletRequest req)
                                   throws SessionTimeOutedException
forwardされたJSPで、IUserSessionのインスタンスを取得します。
このメソッドはRunTimeServletの実行中に生成されたIUserSessionのインスタンスを取得します。

パラメータ:
req - HttpServletRequestのインスタンス
戻り値:
取得できたIUserSessionオブジェクト
例外:
タイムアウト、ログインがされていない場合。
SessionTimeOutedException

getContextPath

public static java.lang.String getContextPath(javax.servlet.http.HttpServletRequest req)
実行中のサーブレット・コンテキストパスを取得します。

パラメータ:
req -
戻り値:
サーブレット・コンテキストパス

getStringValidator

public static IStringValidator getStringValidator()
IStringValidatorのインスタンスを取得します。