|
||||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |
java.lang.Object org.seasar.cubby.interceptor.InitializeInterceptor
public class InitializeInterceptor
アクションの初期化やリクエストパラメータからフォームオブジェクトへのバインドなどを行うインターセプタです。
コンストラクタの概要 | |
---|---|
InitializeInterceptor()
|
メソッドの概要 | |
---|---|
Object |
invoke(MethodInvocation invocation)
以下のようなフローでアクションメソッドを実行します。 |
void |
setRequest(HttpServletRequest request)
リクエストを設定します。 |
void |
setRequestParameterBinder(RequestParameterBinder requestParameterBinder)
リクエストパラメータをオブジェクトへバインドするクラスを設定します。 |
クラス java.lang.Object から継承されたメソッド |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
コンストラクタの詳細 |
---|
public InitializeInterceptor()
メソッドの詳細 |
---|
public void setRequest(HttpServletRequest request)
request
- リクエストpublic void setRequestParameterBinder(RequestParameterBinder requestParameterBinder)
requestParameterBinder
- リクエストパラメータをオブジェクトへバインドするクラスpublic Object invoke(MethodInvocation invocation) throws Throwable
以下のようなフローでアクションメソッドを実行します。
Action.invokeInitializeMethod(Method)
を呼び出してアクションを初期化します。RequestParameterBinder#bind(Map, Object, Method)
によってリクエストパラメータをフォームオブジェクトにバインドします。
MethodInterceptor
内の invoke
Throwable
|
||||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |