Class JaxrsEndPointValidationInterceptor

    • Constructor Detail

      • JaxrsEndPointValidationInterceptor

        public JaxrsEndPointValidationInterceptor()
    • Method Detail

      • validateMethodInvocation

        public Object validateMethodInvocation​(javax.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​(javax.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.