Examples of validateReturnValue()


Examples of org.apache.cxf.validation.BeanValidationProvider.validateReturnValue()

                Object entity = ((MessageContentsList)list).get(0);
               
                if (entity instanceof Response) {
                    theProvider.validateReturnValue(serviceObject, m, ((Response)entity).getEntity());   
                } else {               
                    theProvider.validateReturnValue(serviceObject, m, entity);
                }
            }
        }
       
        return response;
View Full Code Here

Examples of org.apache.cxf.validation.ValidationProvider.validateReturnValue()

            MessageContentsList list = (MessageContentsList)response;
            if (list.size() == 1) {
                Object entity = ((MessageContentsList)list).get(0);
               
                if (entity instanceof Response) {
                    theProvider.validateReturnValue(serviceObject, m, ((Response)entity).getEntity());   
                } else {               
                    theProvider.validateReturnValue(serviceObject, m, entity);
                }
            }
        }
View Full Code Here

Examples of org.apache.cxf.validation.ValidationProvider.validateReturnValue()

                Object entity = ((MessageContentsList)list).get(0);
               
                if (entity instanceof Response) {
                    theProvider.validateReturnValue(serviceObject, m, ((Response)entity).getEntity());   
                } else {               
                    theProvider.validateReturnValue(serviceObject, m, entity);
                }
            }
        }
       
        return response;
View Full Code Here

Examples of org.hibernate.validator.MethodValidator.validateReturnValue()

      throw new MethodConstraintViolationException( parametersViolations );
    }

    result =  pjp.proceed(); //Execute the method

    Set<MethodConstraintViolation<Object>> returnValueViolations = methodValidator.validateReturnValue(
        pjp.getTarget(), signature.getMethod(), result
    );
    if ( !returnValueViolations.isEmpty() ) {
      throw new MethodConstraintViolationException( returnValueViolations );
    }
View Full Code Here

Examples of org.hibernate.validator.MethodValidator.validateReturnValue()

      throw new MethodConstraintViolationException(violations);
    }

    Object result = invocation.proceed();

    violations = validator.validateReturnValue(
            invocation.getThis(),
            invocation.getMethod(),
            result);

    if (!violations.isEmpty()) {
View Full Code Here

Examples of org.hibernate.validator.MethodValidator.validateReturnValue()

      throw new MethodConstraintViolationException(violations);
    }

    Object result = ctx.proceed();

    violations = validator.validateReturnValue(ctx.getTarget(), ctx.getMethod(), result);

    if (!violations.isEmpty()) {
      throw new MethodConstraintViolationException(violations);
    }
View Full Code Here

Examples of org.jboss.resteasy.spi.validation.GeneralValidator.validateReturnValue()

         msg += " )";
         throw new InternalServerErrorException(msg, e);
      }
      if (validator != null)
      {
         validator.validateReturnValue(request, resource, method.getMethod(), result);
      }
      return result;
   }

}
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.