|
||||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |
java.lang.Objectorg.seasar.cubby.internal.controller.ThreadContext
public class ThreadContext
実行スレッドのコンテキスト情報です。
入れ子のクラスの概要 | |
---|---|
static interface |
ThreadContext.Command
コンテキスト内で実行するコマンドのインターフェイスです。 |
メソッドの概要 | |
---|---|
static Map<String,Object> |
getMessagesMap()
getMessagesResourceBundle() で取得できる ResourceBundle を変換した
Map を取得します。 |
static ResourceBundle |
getMessagesResourceBundle()
現在の実行スレッドに関連付けられた要求に対応するメッセージ用の ResourceBundle を取得します。 |
static HttpServletRequest |
getRequest()
現在の実行スレッドに関連付けられた要求を取得します。 |
static HttpServletResponse |
getResponse()
現在の実行スレッドに関連付けられた応答を取得します。 |
static void |
runInContext(HttpServletRequest request,
HttpServletResponse response,
ThreadContext.Command command)
指定されたコマンドを新しいコンテキスト内で実行します。 |
クラス java.lang.Object から継承されたメソッド |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
メソッドの詳細 |
---|
public static HttpServletRequest getRequest()
public static HttpServletResponse getResponse()
public static ResourceBundle getMessagesResourceBundle()
ResourceBundle
を取得します。
public static Map<String,Object> getMessagesMap()
getMessagesResourceBundle()
で取得できる ResourceBundle
を変換した
Map
を取得します。
Map
public static void runInContext(HttpServletRequest request, HttpServletResponse response, ThreadContext.Command command) throws Exception
request
- 要求response
- 応答command
- コンテキスト内で実行するコマンド
Exception
- コマンドの実行中に例外が発生した場合
|
||||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |