Enum Class ProxyRoute.Kind

java.lang.Object
java.lang.Enum<ProxyRoute.Kind>
lol.trq.alts.net.ProxyRoute.Kind
All Implemented Interfaces:
Serializable, Comparable<ProxyRoute.Kind>, Constable
Enclosing class:
ProxyRoute

public static enum ProxyRoute.Kind extends Enum<ProxyRoute.Kind>
How a route reaches the network.
Since:
0.8.0
  • Enum Constant Details

    • DIRECT

      public static final ProxyRoute.Kind DIRECT
      No proxy.
      Since:
      0.8.0
    • HTTP

      public static final ProxyRoute.Kind HTTP
      An HTTP proxy, which may carry credentials.
      Since:
      0.8.0
    • SOCKS5

      public static final ProxyRoute.Kind SOCKS5
      A SOCKS5 proxy, which may not — see ProxyRoute.
      Since:
      0.8.0
  • Method Details

    • values

      public static ProxyRoute.Kind[] 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 ProxyRoute.Kind 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