Class UrlValidator.Builder

java.lang.Object
io.aiven.commons.kafka.config.validator.UrlValidator.Builder
Enclosing class:
UrlValidator

public static class UrlValidator.Builder extends Object
Builder for UrlValidator.
  • Method Details

    • build

      public UrlValidator build()
      Builds a UrlValidator.
      Returns:
      a new UrlValidator.
    • schemes

      public UrlValidator.Builder schemes(String... scheme)
      Adds one or more schemes to the list of valid schemes.
      Parameters:
      scheme - the scheme(s) to add.
      Returns:
      this
    • hosts

      public UrlValidator.Builder hosts(String... host)
      Adds one or more hosts to the list of valid hosts.
      Parameters:
      host - the host(s) to add.
      Returns:
      this