Annotation Type URI

    • Optional Element Summary

      Optional Elements 
      Modifier and Type Optional Element Description
      boolean allowEmptyString  
      Class<?>[] groups  
      boolean lenient
      If the check is lenient, than also 'new URL' will be tried.
      String message  
      int minHostParts
      The number of parts (when the string is separated by a dot) the URI must have.
      boolean mustHaveScheme
      If true the URI must have a scheme.
      Class<? extends javax.validation.Payload>[] payload  
      String[] schemes
      If set, the acceptable schemes.
    • Element Detail

      • message

        String message
        Default:
        "{nl.vpro.constraints.URI}"
      • mustHaveScheme

        boolean mustHaveScheme
        If true the URI must have a scheme.
        Default:
        false
      • minHostParts

        int minHostParts
        The number of parts (when the string is separated by a dot) the URI must have. E.g. if this is 2, then the url http://vpro/foobar will not be valid. (because you'd expect at least something like http://vpro.nl/foobar
        Default:
        0
      • schemes

        String[] schemes
        If set, the acceptable schemes. E.g. {http, https}
        Default:
        {}
      • groups

        Class<?>[] groups
        Default:
        {}
      • payload

        Class<? extends javax.validation.Payload>[] payload
        Default:
        {}
      • lenient

        boolean lenient
        If the check is lenient, than also 'new URL' will be tried.
        Default:
        false
      • allowEmptyString

        boolean allowEmptyString
        Default:
        false