org.seasar.cubby.interceptor
クラス InitializeInterceptor

java.lang.Object
  上位を拡張 org.seasar.cubby.interceptor.InitializeInterceptor
すべての実装されたインタフェース:
Advice, Interceptor, MethodInterceptor

public class InitializeInterceptor
extends Object
implements MethodInterceptor

アクションの初期化やリクエストパラメータからフォームオブジェクトへのバインドなどを行うインターセプタです。

導入されたバージョン:
1.0.0
作成者:
agata, baba

コンストラクタの概要
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
 

コンストラクタの詳細

InitializeInterceptor

public InitializeInterceptor()
メソッドの詳細

setRequest

public void setRequest(HttpServletRequest request)
リクエストを設定します。

パラメータ:
request - リクエスト

setRequestParameterBinder

public void setRequestParameterBinder(RequestParameterBinder requestParameterBinder)
リクエストパラメータをオブジェクトへバインドするクラスを設定します。

パラメータ:
requestParameterBinder - リクエストパラメータをオブジェクトへバインドするクラス

invoke

public Object invoke(MethodInvocation invocation)
              throws Throwable

以下のようなフローでアクションメソッドを実行します。

定義:
インタフェース MethodInterceptor 内の invoke
例外:
Throwable


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