org.apache.struts2.interceptor.validation
Class AnnotationValidationInterceptor

java.lang.Object
  extended by com.opensymphony.xwork2.interceptor.AbstractInterceptor
      extended by com.opensymphony.xwork2.interceptor.MethodFilterInterceptor
          extended by com.opensymphony.xwork2.validator.ValidationInterceptor
              extended by org.apache.struts2.interceptor.validation.AnnotationValidationInterceptor
All Implemented Interfaces:
Interceptor, java.io.Serializable

public class AnnotationValidationInterceptor
extends ValidationInterceptor

Extends the xwork validation interceptor to also check for a @SkipValidation annotation, and if found, don't validate this action method

See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.opensymphony.xwork2.interceptor.MethodFilterInterceptor
excludeMethods, includeMethods, log
 
Constructor Summary
AnnotationValidationInterceptor()
           
 
Method Summary
protected  java.lang.String doIntercept(ActionInvocation invocation)
           
protected  java.lang.reflect.Method getActionMethod(java.lang.Class actionClass, java.lang.String methodName)
           
 
Methods inherited from class com.opensymphony.xwork2.validator.ValidationInterceptor
doBeforeInvocation, isValidateAnnotatedMethodOnly, setActionValidatorManager, setAlwaysInvokeValidate, setDeclarative, setProgrammatic, setValidateAnnotatedMethodOnly
 
Methods inherited from class com.opensymphony.xwork2.interceptor.MethodFilterInterceptor
applyInterceptor, getExcludeMethodsSet, getIncludeMethodsSet, intercept, setExcludeMethods, setIncludeMethods
 
Methods inherited from class com.opensymphony.xwork2.interceptor.AbstractInterceptor
destroy, init
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AnnotationValidationInterceptor

public AnnotationValidationInterceptor()
Method Detail

doIntercept

protected java.lang.String doIntercept(ActionInvocation invocation)
                                throws java.lang.Exception
Overrides:
doIntercept in class ValidationInterceptor
Throws:
java.lang.Exception

getActionMethod

protected java.lang.reflect.Method getActionMethod(java.lang.Class actionClass,
                                                   java.lang.String methodName)
                                            throws java.lang.NoSuchMethodException
Throws:
java.lang.NoSuchMethodException


Copyright © 2000-2011 Apache Software Foundation. All Rights Reserved.