Annotation Interface URI


The annotated element must be a String validated to be a valid URI.

Supported types are:

  • String
  • CharSequence
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    Used in combination with regexp() in order to specify a regular expression option
    Class<?>[]
     
    Set the host to match, e.g.
    Set the message to use.
    int
    Set the port to match, e.g.
    Set a regular expression to match against.
    Set a scheme to match.
  • Element Details

    • scheme

      String scheme
      Set a scheme to match. Per default any scheme is allowed.
      Default:
      ""
    • host

      String host
      Set the host to match, e.g. localhost. Per default any host is allowed.
      Default:
      ""
    • port

      int port
      Set the port to match, e.g. 80. Per default any port is allowed.
      Default:
      -1
    • regexp

      String regexp
      Set a regular expression to match against. Per default anything is allowed.
      Default:
      ""
    • flags

      RegexFlag[] flags
      Used in combination with regexp() in order to specify a regular expression option
      Default:
      {}
    • message

      String message
      Set the message to use. Per default uses the built-in message key.
      Default:
      "{avaje.URI.message}"
    • groups

      Class<?>[] groups
      Default:
      {}