@Deprecated public class GeneralValidatorImpl extends Object implements GeneralValidatorCDI
| Modifier and Type | Class and Description |
|---|---|
static class |
GeneralValidatorImpl.S1
Deprecated.
|
static class |
GeneralValidatorImpl.S2
Deprecated.
|
static class |
GeneralValidatorImpl.S3
Deprecated.
|
static class |
GeneralValidatorImpl.S4
Deprecated.
|
static class |
GeneralValidatorImpl.S5
Deprecated.
|
| Modifier and Type | Field and Description |
|---|---|
static Annotation |
LOCAL
Deprecated.
|
static Annotation |
REMOTE
Deprecated.
|
static Annotation |
SINGLETON
Deprecated.
|
static Annotation |
STATEFUL
Deprecated.
|
static Annotation |
STATELESS
Deprecated.
|
static String |
SUPPRESS_VIOLATION_PATH
Deprecated.
|
| Constructor and Description |
|---|
GeneralValidatorImpl(javax.validation.Validator validator,
MethodValidator methodValidator)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
void |
checkForConstraintViolations(HttpRequest request,
Exception e)
Deprecated.
Throws a ResteasyViolationException if either a ConstraintViolationException or a
ResteasyConstraintViolationException is embedded in the cause hierarchy of e.
|
protected boolean |
checkIsMethodValidatable(Method m)
Deprecated.
|
protected boolean |
checkIsValidatable(Class<?> clazz)
Deprecated.
|
void |
checkViolations(HttpRequest request)
Deprecated.
Throws a ResteasyViolationException if any validation violations have been detected.
|
void |
checkViolationsfromCDI(HttpRequest request)
Deprecated.
Throws a ResteasyViolationException if any validation violations have been detected.
|
protected ViolationsContainer<Object> |
getViolationsContainer(HttpRequest request,
Object target)
Deprecated.
|
boolean |
isMethodValidatable(Method m)
Deprecated.
Indicates if validation is turned on for a method.
|
boolean |
isValidatable(Class<?> clazz)
Deprecated.
Indicates if validation is turned on for a class.
|
boolean |
isValidatable(Class<?> clazz,
InjectorFactory injectorFactory)
Deprecated.
Indicates if validation is turned on for a class.
|
boolean |
isValidatableFromCDI(Class<?> clazz)
Deprecated.
Indicates if validation is turned on for a class.
|
void |
validate(HttpRequest request,
Object object,
Class<?>... groups)
Deprecated.
Validates all constraints on
object. |
void |
validateAllParameters(HttpRequest request,
Object object,
Method method,
Object[] parameterValues,
Class<?>... groups)
Deprecated.
Validates all constraints placed on the parameters of the given method.
|
void |
validateReturnValue(HttpRequest request,
Object object,
Method method,
Object returnValue,
Class<?>... groups)
Deprecated.
Validates all return value constraints of the given method.
|
public static final String SUPPRESS_VIOLATION_PATH
public static final Annotation STATELESS
public static final Annotation STATEFUL
public static final Annotation SINGLETON
public static final Annotation LOCAL
public static final Annotation REMOTE
public GeneralValidatorImpl(javax.validation.Validator validator,
MethodValidator methodValidator)
public void checkViolations(HttpRequest request)
GeneralValidatorcheckViolations in interface GeneralValidatorpublic void checkViolationsfromCDI(HttpRequest request)
GeneralValidatorCDIcheckViolationsfromCDI in interface GeneralValidatorCDIpublic void validate(HttpRequest request, Object object, Class<?>... groups)
GeneralValidatorobject.validate in interface GeneralValidatorobject - object to validategroups - the group or list of groups targeted for validation (defaults to
Default)public void validateAllParameters(HttpRequest request, Object object, Method method, Object[] parameterValues, Class<?>... groups)
GeneralValidatorvalidateAllParameters in interface GeneralValidatorobject - the object on which the method to validate is invokedmethod - the method for which the parameter constraints is validatedparameterValues - the values provided by the caller for the given method's
parametersgroups - the group or list of groups targeted for validation (defaults to
Default)public void validateReturnValue(HttpRequest request, Object object, Method method, Object returnValue, Class<?>... groups)
GeneralValidatorvalidateReturnValue in interface GeneralValidatorobject - the object on which the method to validate is invokedmethod - the method for which the return value constraints is validatedreturnValue - the value returned by the given methodgroups - the group or list of groups targeted for validation (defaults to
Default)public boolean isValidatable(Class<?> clazz)
GeneralValidatorisValidatable in interface GeneralValidatorclazz - Class to be examinedpublic boolean isValidatable(Class<?> clazz, InjectorFactory injectorFactory)
GeneralValidatorCDIisValidatable in interface GeneralValidatorCDIclazz - Class to be examinedinjectorFactory - the InjectorFactory used for clazzpublic boolean isValidatableFromCDI(Class<?> clazz)
GeneralValidatorCDIisValidatableFromCDI in interface GeneralValidatorCDIclazz - Class to be examinedprotected boolean checkIsValidatable(Class<?> clazz)
public boolean isMethodValidatable(Method m)
GeneralValidatorisMethodValidatable in interface GeneralValidatorm - method to be examinedprotected boolean checkIsMethodValidatable(Method m)
public void checkForConstraintViolations(HttpRequest request, Exception e)
GeneralValidatorCDIcheckForConstraintViolations in interface GeneralValidatorCDIprotected ViolationsContainer<Object> getViolationsContainer(HttpRequest request, Object target)
Copyright © 2016 JBoss by Red Hat. All rights reserved.