Class AnnotationValidationInterceptor
java.lang.Object
org.apache.struts2.interceptor.AbstractInterceptor
org.apache.struts2.interceptor.MethodFilterInterceptor
org.apache.struts2.validator.ValidationInterceptor
org.apache.struts2.interceptor.validation.AnnotationValidationInterceptor
- All Implemented Interfaces:
- Serializable,- ConditionalInterceptor,- Interceptor
Extends the xwork validation interceptor to also check for a @SkipValidation
 annotation, and if found, don't validate this action method
- See Also:
- 
Field SummaryFields inherited from class org.apache.struts2.interceptor.MethodFilterInterceptorexcludeMethods, includeMethods
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionprotected StringdoIntercept(ActionInvocation invocation) Subclasses must override to implement the interceptor logic.protected MethodgetActionMethod(Class<?> actionClass, String methodName) Methods inherited from class org.apache.struts2.validator.ValidationInterceptordoBeforeInvocation, getValidationContext, isValidateAnnotatedMethodOnly, setActionValidatorManager, setAlwaysInvokeValidate, setDeclarative, setProgrammatic, setValidateAnnotatedMethodOnlyMethods inherited from class org.apache.struts2.interceptor.MethodFilterInterceptorapplyInterceptor, getExcludeMethodsSet, getIncludeMethodsSet, intercept, setExcludeMethods, setIncludeMethodsMethods inherited from class org.apache.struts2.interceptor.AbstractInterceptordestroy, init, setDisabled, shouldIntercept
- 
Constructor Details- 
AnnotationValidationInterceptorpublic AnnotationValidationInterceptor()
 
- 
- 
Method Details- 
doInterceptDescription copied from class:MethodFilterInterceptorSubclasses must override to implement the interceptor logic.- Overrides:
- doInterceptin class- ValidationInterceptor
- Parameters:
- invocation- the action invocation
- Returns:
- the result of invocation
- Throws:
- Exception- in case of any errors
 
- 
getActionMethod
 
-