Enum Class ProxyConfiguration.Type
java.lang.Object
java.lang.Enum<ProxyConfiguration.Type>
com.palantir.conjure.java.api.config.service.ProxyConfiguration.Type
- All Implemented Interfaces:
Serializable, Comparable<ProxyConfiguration.Type>, Constable
- Enclosing class:
ProxyConfiguration
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionUse a direct connection.Use an http-proxy withProxyConfiguration.hostAndPort()extracted from environment's "https_proxy".Use an http-proxy specified byProxyConfiguration.hostAndPort()and (optionally)ProxyConfiguration.credentials().Use an https-proxy specified byProxyConfiguration.hostAndPort()and (optionally)ProxyConfiguration.credentials().Redirects requests to theProxyConfiguration.hostAndPort()and sets the HTTP Host header to the original request's authority.Connections are created using a SOCKS proxy. -
Method Summary
Modifier and TypeMethodDescriptionstatic ProxyConfiguration.TypeReturns the enum constant of this class with the specified name.static ProxyConfiguration.Type[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
DIRECT
Use a direct connection. This option will bypass any JVM-level configured proxy settings. -
FROM_ENVIRONMENT
Use an http-proxy withProxyConfiguration.hostAndPort()extracted from environment's "https_proxy". -
HTTP
Use an http-proxy specified byProxyConfiguration.hostAndPort()and (optionally)ProxyConfiguration.credentials(). -
HTTPS
Use an https-proxy specified byProxyConfiguration.hostAndPort()and (optionally)ProxyConfiguration.credentials().This is a beta feature and may not be supported by all clients.
-
MESH
Redirects requests to theProxyConfiguration.hostAndPort()and sets the HTTP Host header to the original request's authority. -
SOCKS
Connections are created using a SOCKS proxy.
-
-
Method Details
-
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
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 nameNullPointerException- if the argument is null
-