Class JaxrsEndPointValidationInterceptor
- java.lang.Object
-
- io.quarkus.hibernate.validator.runtime.interceptor.AbstractMethodValidationInterceptor
-
- io.quarkus.hibernate.validator.runtime.jaxrs.JaxrsEndPointValidationInterceptor
-
- All Implemented Interfaces:
Serializable
@Interceptor @Priority(4800) public class JaxrsEndPointValidationInterceptor extends AbstractMethodValidationInterceptor
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description (package private) ResteasyConfigSupportresteasyConfigSupport
-
Constructor Summary
Constructors Constructor Description JaxrsEndPointValidationInterceptor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidvalidateConstructorInvocation(javax.interceptor.InvocationContext ctx)Validates the Bean Validation constraints specified at the parameters and/or return value of the intercepted constructor.ObjectvalidateMethodInvocation(javax.interceptor.InvocationContext ctx)Validates the Bean Validation constraints specified at the parameters and/or return value of the intercepted method.
-
-
-
Field Detail
-
resteasyConfigSupport
@Inject ResteasyConfigSupport resteasyConfigSupport
-
-
Method Detail
-
validateMethodInvocation
public Object validateMethodInvocation(javax.interceptor.InvocationContext ctx) throws Exception
Description copied from class:AbstractMethodValidationInterceptorValidates the Bean Validation constraints specified at the parameters and/or return value of the intercepted method.- Overrides:
validateMethodInvocationin classAbstractMethodValidationInterceptor- Parameters:
ctx- The context of the intercepted method invocation.- Returns:
- The result of the method invocation.
- Throws:
Exception- Any exception caused by the intercepted method invocation. AConstraintViolationExceptionin case at least one constraint violation occurred either during parameter or return value validation.
-
validateConstructorInvocation
public void validateConstructorInvocation(javax.interceptor.InvocationContext ctx) throws ExceptionDescription copied from class:AbstractMethodValidationInterceptorValidates the Bean Validation constraints specified at the parameters and/or return value of the intercepted constructor.- Overrides:
validateConstructorInvocationin classAbstractMethodValidationInterceptor- Parameters:
ctx- The context of the intercepted constructor invocation.- Throws:
Exception- Any exception caused by the intercepted constructor invocation. AConstraintViolationExceptionin case at least one constraint violation occurred either during parameter or return value validation.
-
-