org.vraptor.interceptor
Class SettingAndValidationInterceptor

java.lang.Object
  extended by org.vraptor.interceptor.SettingAndValidationInterceptor
All Implemented Interfaces:
Interceptor

public class SettingAndValidationInterceptor
extends Object
implements Interceptor

Responsible for setters and validation.

Author:
Guilherme Silveira, Paulo Silveira

Constructor Summary
SettingAndValidationInterceptor(WebApplication webApp)
           
 
Method Summary
 void intercept(LogicFlow flow)
          Validates and then Sets the component parameters.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SettingAndValidationInterceptor

public SettingAndValidationInterceptor(WebApplication webApp)
Method Detail

intercept

public void intercept(LogicFlow flow)
               throws LogicException,
                      ViewException
Validates and then Sets the component parameters. This interceptor will not continue the logicFlow if an invalid parameter was passed, this way the ViewInterceptor will not be executed. It will also confirmResult to INVALID in this case.

Specified by:
intercept in interface Interceptor
Throws:
LogicException - some logic exception occurred
ViewException - some view exception occurred


Copyright © 2004-2008 VRaptor. All Rights Reserved.