Enum InsecureProtocolOption

java.lang.Object
java.lang.Enum<InsecureProtocolOption>
org.gradle.buildinit.InsecureProtocolOption
Alle implementierten Schnittstellen:
Serializable, Comparable<InsecureProtocolOption>, java.lang.constant.Constable

public enum InsecureProtocolOption extends Enum<InsecureProtocolOption>
Options for handling insecure protocols when generating a project with repositories.
Seit:
7.3
  • Enum-Konstanten - Details

    • FAIL

      public static final InsecureProtocolOption FAIL
      Fail if a URL with an insecure protocol is found. Refuse to generate a Gradle build.
    • WARN

      public static final InsecureProtocolOption WARN
      Emit a warning if a URL with an insecure protocol is found. The generated Gradle build will fail at runtime.
    • ALLOW

      public static final InsecureProtocolOption ALLOW
      Allow insecure protocols to be used when found. The generated Gradle build will not fail, but it will allow insecure protocols to be used.
    • UPGRADE

      public static final InsecureProtocolOption UPGRADE
      Upgrade an insecure protocol to a secure one. The generated Gradle build will not fail, but the repository may not be usable over a secure protocol.
  • Methodendetails

    • values

      public static InsecureProtocolOption[] values()
      Gibt ein Array mit den Konstanten dieses Enum-Typs in der Reihenfolge ihrer Deklaration zurück.
      Gibt zurück:
      ein Array mit den Konstanten dieses Enumerationstyps in der Reihenfolge ihrer Deklaration
    • valueOf

      public static InsecureProtocolOption valueOf(String name)
      Gibt die Enumerationskonstante dieses Typs mit dem angegebenen Namen zurück. Die Zeichenfolge muss exakt mit einer ID übereinstimmen, mit der eine Enumerationskonstante in diesem Typ deklariert wird. (Zusätzliche Leerzeichen sind nicht zulässig.)
      Parameter:
      name - Name der zurückzugebenden Enumerationskonstante.
      Gibt zurück:
      Enumerationskonstante mit dem angegebenen Namen
      Löst aus:
      IllegalArgumentException - wenn dieser Enumerationstyp keine Konstante mit dem angegebenen Namen enthält
      NullPointerException - wenn das Argument nicht angegeben wird