# Annotation Type Url

@Retention(CLASS) @Target(FIELD) public @interface Url

Requires the component value to be a syntactically valid URL (http, https, ftp, or file scheme). The processor emits `RegexConstraint.validURL(message)` into the `Validator` returned by `Binding#getValidator()`.

    @Bind(name="homepageField") @Url
    private String homepage;

- ## Optional Element Summary

  Optional Elements
  Modifier and Type
  Optional Element
  Description
  `String`
  `message`
  Override the default error message ("Invalid URL").

- ## Element Details

  - ### message

    String message
    Override the default error message ("Invalid URL").
    Default:
      `""`