org.seasar.cubby.interceptor
クラス ValidationInterceptor

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

public class ValidationInterceptor
extends Object
implements MethodInterceptor

入力検証とフォームオブジェクトへの値のバインディングを行います。
入力検証が成功した場合:
フォームオブジェクトへのバインドを行い、後のフィルターを実行します。
入力検証が失敗した場合:
フォームオブジェクトへのバインドを行い、アクションメソッドに設定されたValidation.errorPage()へフォワードします。 またリクエスト中の入力検証エラーフラグがONになります。

導入されたバージョン:
1.0
作成者:
agata
関連項目:
入力検証エラーフラグの属性名

コンストラクタの概要
ValidationInterceptor()
           
 
メソッドの概要
 Object invoke(MethodInvocation invocation)
           
 void setActionContext(ActionContext context)
           
 void setActionValidatior(ActionValidator actionValidator)
           
 
クラス java.lang.Object から継承されたメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

コンストラクタの詳細

ValidationInterceptor

public ValidationInterceptor()
メソッドの詳細

setActionContext

public void setActionContext(ActionContext context)

setActionValidatior

public void setActionValidatior(ActionValidator actionValidator)

invoke

public Object invoke(MethodInvocation invocation)
              throws Throwable
定義:
インタフェース MethodInterceptor 内の invoke
例外:
Throwable


Copyright ツゥ 2006-2007 The Seasar Foundation and the others. All rights reserved.. All Rights Reserved.