Enum Class ProxyType

java.lang.Object
java.lang.Enum<ProxyType>
com.linecorp.armeria.client.proxy.ProxyType
All Implemented Interfaces:
Serializable, Comparable<ProxyType>, Constable

public enum ProxyType extends Enum<ProxyType>
The proxy protocol type.
  • Enum Constant Details

    • DIRECT

      public static final ProxyType DIRECT
      Proxy is absent.
    • SOCKS4

      public static final ProxyType SOCKS4
      SOCKS4 proxy protocol.
    • SOCKS5

      public static final ProxyType SOCKS5
      SOCKS5 proxy protocol.
    • CONNECT

      public static final ProxyType CONNECT
      CONNECT proxy protocol.
    • HAPROXY

      public static final ProxyType HAPROXY
      HAPROXY protocol.
  • Method Details

    • values

      public static ProxyType[] 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 ProxyType 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
    • isForwardProxy

      @UnstableApi public boolean isForwardProxy()
      Returns whether this proxy is a forward proxy type.