org.seasar.cubby.interceptor
クラス InitializeInterceptor

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

public class InitializeInterceptor
extends Object
implements MethodInterceptor

コントローラの初期化や実行結果のrequest/sessionへの反映などを行うインターセプタです。 Action.initialize()Action.prerender() の実行を行います。

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

コンストラクタの概要
InitializeInterceptor()
           
 
メソッドの概要
 Object invoke(MethodInvocation invocation)
           以下のようなフローでアクションメソッドを実行します。
 void setActionContext(ActionContext context)
          アクションのコンテキストを設定します。
 void setRequest(HttpServletRequest request)
          リクエストを設定します。
 
クラス java.lang.Object から継承されたメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

コンストラクタの詳細

InitializeInterceptor

public InitializeInterceptor()
メソッドの詳細

setRequest

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

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

setActionContext

public void setActionContext(ActionContext context)
アクションのコンテキストを設定します。

パラメータ:
context - アクションのコンテキスト

invoke

public Object invoke(MethodInvocation invocation)
              throws Throwable

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

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


Copyright ツゥ 2006-2008 The Seasar Foundation. All Rights Reserved.