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:
  • Field Details

  • Constructor Details

    • JaxrsEndPointValidationInterceptor

      public JaxrsEndPointValidationInterceptor()
  • Method Details

    • validateMethodInvocation

      public Object validateMethodInvocation(jakarta.interceptor.InvocationContext ctx) throws Exception
      Description copied from class: AbstractMethodValidationInterceptor
      Validates the Bean Validation constraints specified at the parameters and/or return value of the intercepted method.
      Overrides:
      validateMethodInvocation in class AbstractMethodValidationInterceptor
      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. A ConstraintViolationException in case at least one constraint violation occurred either during parameter or return value validation.
    • validateConstructorInvocation

      public void validateConstructorInvocation(jakarta.interceptor.InvocationContext ctx) throws Exception
      Description copied from class: AbstractMethodValidationInterceptor
      Validates the Bean Validation constraints specified at the parameters and/or return value of the intercepted constructor.
      Overrides:
      validateConstructorInvocation in class AbstractMethodValidationInterceptor
      Parameters:
      ctx - The context of the intercepted constructor invocation.
      Throws:
      Exception - Any exception caused by the intercepted constructor invocation. A ConstraintViolationException in case at least one constraint violation occurred either during parameter or return value validation.
    • getProduces

      public static List<jakarta.ws.rs.core.MediaType> getProduces(jakarta.ws.rs.Produces produces)