Class AbstractDomainOrHostNameConstraintValidator

    • Constructor Detail

      • AbstractDomainOrHostNameConstraintValidator

        protected AbstractDomainOrHostNameConstraintValidator​(boolean errorWithDetails)
        Creates the default instance of AbstractDomainOrHostNameConstraintValidator type.
        Parameters:
        errorWithDetails - validation error with detail message or not
    • Method Detail

      • getRule

        protected abstract String getRule()
        Returns the rule.
        Returns:
        the rule
      • getName

        protected abstract String getName()
        Returns the name.
        Returns:
        the name
      • validate

        public final void validate​(String actual,
                                   HttpModelType httpModelType,
                                   String modelName)
        Description copied from interface: ConstraintValidator
        Validates the single actual.

        The state of the actual must not be altered.

        Specified by:
        validate in interface ConstraintValidator<String>
        Parameters:
        actual - the actual value to validate
        httpModelType - the http model type
        modelName - the parameter or header name