org.seasar.cubby.action
インタフェース ActionContext

既知の実装クラスの一覧:
ActionContextProxy

public interface ActionContext

アクションのコンテキストです。

作成者:
baba

メソッドの概要
 void clearFlash()
          揮発性メッセージをクリアします。
 Object getAction()
          アクションを取得します。
 Class<?> getActionClass()
          アクションクラスを取得します。
 ActionErrors getActionErrors()
          アクションエラーを取得します。
 Method getActionMethod()
          アクションメソッドを取得します。
 Map<String,Object> getFlashMap()
          揮発性メッセージを取得します。
 Object getFormBean()
          指定されたアクションからアクションメソッドに対応するフォームオブジェクトを取得します。
 void invokeInitializeMethod()
          アクションメソッドの実行前に呼ばれます。
 void invokePostRenderMethod()
          フォワードの直後に呼ばれます。
 void invokePreRenderMethod()
          フォーワードの直前に呼ばれます。
 boolean isBindRequestParameterToAllProperties()
          フォームオブジェクトのすべてのプロパティに要求パラメータをバインドするかを示します。
 

メソッドの詳細

getAction

Object getAction()
アクションを取得します。

戻り値:
アクション

getActionClass

Class<?> getActionClass()
アクションクラスを取得します。

戻り値:
アクションクラス

getActionMethod

Method getActionMethod()
アクションメソッドを取得します。

戻り値:
アクションメソッド

getFormBean

Object getFormBean()
指定されたアクションからアクションメソッドに対応するフォームオブジェクトを取得します。

戻り値:
フォームオブジェクト
例外:
ActionException - @Formでフォームオブジェクトとなるプロパティを指定しているが、そのプロパティが null だった場合

isBindRequestParameterToAllProperties

boolean isBindRequestParameterToAllProperties()
フォームオブジェクトのすべてのプロパティに要求パラメータをバインドするかを示します。

戻り値:
フォームオブジェクトのすべてのプロパティに要求パラメータをバインドする場合は true 、そうでない場合は false

invokeInitializeMethod

void invokeInitializeMethod()
アクションメソッドの実行前に呼ばれます。

Action.invokeInitializeMethod(Method) を呼び出します。


invokePreRenderMethod

void invokePreRenderMethod()
フォーワードの直前に呼ばれます。

Action.invokePreRenderMethod(Method) を呼び出します。


invokePostRenderMethod

void invokePostRenderMethod()
フォワードの直後に呼ばれます。

Action.invokePostRenderMethod(Method) を呼び出します。


getActionErrors

ActionErrors getActionErrors()
アクションエラーを取得します。

戻り値:
アクションエラー

getFlashMap

Map<String,Object> getFlashMap()
揮発性メッセージを取得します。

戻り値:
揮発性メッセージ

clearFlash

void clearFlash()
揮発性メッセージをクリアします。



Copyright © 2006-2010 The Seasar Foundation. All Rights Reserved.