public interface GeneralValidatorCDI extends GeneralValidator
Modifier and Type | Method and Description |
---|---|
void |
checkForConstraintViolations(HttpRequest request,
Exception e)
Throws a ResteasyViolationException if either a ConstraintViolationException or a
ResteasyConstraintViolationException is embedded in the cause hierarchy of e.
|
void |
checkViolationsfromCDI(HttpRequest request)
Throws a ResteasyViolationException if any validation violations have been detected.
|
boolean |
isValidatable(Class<?> clazz,
InjectorFactory injectorFactory)
Indicates if validation is turned on for a class.
|
boolean |
isValidatableFromCDI(Class<?> clazz)
Indicates if validation is turned on for a class.
|
checkViolations, isMethodValidatable, isValidatable, validate, validateAllParameters, validateReturnValue
boolean isValidatable(Class<?> clazz, InjectorFactory injectorFactory)
clazz
- Class to be examinedinjectorFactory
- the InjectorFactory used for clazzboolean isValidatableFromCDI(Class<?> clazz)
clazz
- Class to be examinedvoid checkViolationsfromCDI(HttpRequest request)
request
- void checkForConstraintViolations(HttpRequest request, Exception e)
request
- e
- Copyright © 2016 JBoss by Red Hat. All rights reserved.