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
- 関連項目:
入力検証エラーフラグの属性名
クラス 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.