/** Return the primary Validator for this controller. */ public Validator getValidator() { Validator[] validators = getValidators(); return (validators != null && validators.length > 0 ? validators[0] : null); }
/** Return the primary Validator for this controller. */ public Validator getValidator() { Validator[] validators = getValidators(); return (validators != null && validators.length > 0 ? validators[0] : null); }
/** Return the primary Validator for this controller. */ public Validator getValidator() { Validator[] validators = getValidators(); return (validators != null && validators.length > 0 ? validators[0] : null); }
/** Return the primary Validator for this controller. */ public Validator getValidator() { Validator[] validators = getValidators(); return (validators != null && validators.length > 0 ? validators[0] : null); }
@Override protected boolean onUnmarshalRequest(MessageContext messageContext, Object requestObject) throws Exception { Validator[] validators = getValidators(); if (validators != null) { Errors errors = new BindException(requestObject, getRequestName()); for (Validator validator : validators) { ValidationUtils.invokeValidator(validator, requestObject, errors); } if (errors.hasErrors()) { return onValidationErrors(messageContext, requestObject, errors); } } return true; }
@Override protected boolean onUnmarshalRequest(MessageContext messageContext, Object requestObject) throws Exception { Validator[] validators = getValidators(); if (validators != null) { Errors errors = new BindException(requestObject, getRequestName()); for (Validator validator : validators) { ValidationUtils.invokeValidator(validator, requestObject, errors); } if (errors.hasErrors()) { return onValidationErrors(messageContext, requestObject, errors); } } return true; }
@Override protected boolean onUnmarshalRequest(MessageContext messageContext, Object requestObject) throws Exception { Validator[] validators = getValidators(); if (validators != null) { Errors errors = new BindException(requestObject, getRequestName()); for (Validator validator : validators) { ValidationUtils.invokeValidator(validator, requestObject, errors); } if (errors.hasErrors()) { return onValidationErrors(messageContext, requestObject, errors); } } return true; }
@Override protected boolean onUnmarshalRequest(MessageContext messageContext, Object requestObject) throws Exception { Validator[] validators = getValidators(); if (validators != null) { Errors errors = new BindException(requestObject, getRequestName()); for (Validator validator : validators) { ValidationUtils.invokeValidator(validator, requestObject, errors); } if (errors.hasErrors()) { return onValidationErrors(messageContext, requestObject, errors); } } return true; }