R
- The type parameter R denotes the result type of the validation
process.public class DefaultValidator<R> extends AbstractValidator<R>
Constructor and Description |
---|
DefaultValidator(HapiContext context) |
DefaultValidator(ValidationContext validationContext) |
DefaultValidator(ValidationRuleBuilder builder) |
Modifier and Type | Method and Description |
---|---|
ValidationContext |
getValidationContext() |
protected ValidationExceptionHandler<R> |
initializeHandler()
Returns a new instance of a default
ValidationExceptionHandler
created by the ValidationExceptionHandlerFactory as returned by
HapiContext . |
isValidatePrimitives, setValidatePrimitives, validate, validate, validate, validate
public DefaultValidator(HapiContext context)
public DefaultValidator(ValidationContext validationContext)
public DefaultValidator(ValidationRuleBuilder builder)
public ValidationContext getValidationContext()
getValidationContext
in class AbstractValidator<R>
protected ValidationExceptionHandler<R> initializeHandler()
ValidationExceptionHandler
created by the ValidationExceptionHandlerFactory
as returned by
HapiContext
. Only called when no explicit
ValidationExceptionHandler
has been provided for validation using
AbstractValidator.validate(Message, ValidationExceptionHandler)
.initializeHandler
in class AbstractValidator<R>
ValidationExceptionHandler
Copyright © 2001–2017 University Health Network. All rights reserved.