org.seasar.cubby.interceptor
クラス ValidationInterceptor

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

public class ValidationInterceptor
extends Object
implements MethodInterceptor

入力検証を行います。

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

コンストラクタの概要
ValidationInterceptor()
          インスタンス化します。
 
メソッドの概要
 Object invoke(MethodInvocation invocation)
           メソッドの実行前に入力検証を実行します。
 void setRequest(HttpServletRequest request)
          リクエストを設定します。
 void setValidationProcessor(ValidationProcessor validationProcessor)
          入力検証処理を設定します。
 
クラス java.lang.Object から継承されたメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

コンストラクタの詳細

ValidationInterceptor

public ValidationInterceptor()
インスタンス化します。

メソッドの詳細

setValidationProcessor

public void setValidationProcessor(ValidationProcessor validationProcessor)
入力検証処理を設定します。

パラメータ:
validationProcessor - 入力検証処理

setRequest

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

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

invoke

public Object invoke(MethodInvocation invocation)
              throws Throwable

メソッドの実行前に入力検証を実行します。

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


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