Annotation Interface HttpURL


@Documented @Constraint(validatedBy=HttpURLValidator.class) @Target({METHOD,FIELD}) @Retention(RUNTIME) public @interface HttpURL
Validate that the string is a valid https or https URL.

This is used because @URL accepts other protocols such as ftp

URLs with query params or user info will validate false

See Also:
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    Class<?>[]
     
     
    Class<? extends javax.validation.Payload>[]
     
  • Element Details

    • message

      String message
      Default:
      "{com.atlassian.bitbucket.validation.httpurl.message}"
    • groups

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

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