Enum Class HttpSignalingSettings.Scheme

java.lang.Object
java.lang.Enum<HttpSignalingSettings.Scheme>
org.cloudburstmc.netty.channel.nethernet.signaling.HttpSignalingSettings.Scheme
All Implemented Interfaces:
Serializable, Comparable<HttpSignalingSettings.Scheme>, Constable
Enclosing class:
HttpSignalingSettings

public static enum HttpSignalingSettings.Scheme extends Enum<HttpSignalingSettings.Scheme>
Which scheme the signaling speaks.
  • Enum Constant Details

    • AUTO

      public static final HttpSignalingSettings.Scheme AUTO
      Probe first, HTTPS then plaintext, and speak whichever answered. This is what the retail client does. The probe costs one round trip per connect. A host that does not answer fails at once; only one that answers without TLS gets the plaintext attempt. Whoever can make the HTTPS attempt look like that gets a plaintext join, so a hop that has to stay private uses HTTPS.
    • HTTPS

      public static final HttpSignalingSettings.Scheme HTTPS
      HTTPS only: no probe, and no plaintext fallback.
    • HTTP

      public static final HttpSignalingSettings.Scheme HTTP
      Plaintext only, with no probe.
  • Method Details

    • values

      public static HttpSignalingSettings.Scheme[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static HttpSignalingSettings.Scheme valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null