Package software.amazon.awssdk.crt.http
Enum HttpProxyOptions.HttpProxyConnectionType
- java.lang.Object
-
- java.lang.Enum<HttpProxyOptions.HttpProxyConnectionType>
-
- software.amazon.awssdk.crt.http.HttpProxyOptions.HttpProxyConnectionType
-
- All Implemented Interfaces:
Serializable
,Comparable<HttpProxyOptions.HttpProxyConnectionType>
- Enclosing class:
- HttpProxyOptions
public static enum HttpProxyOptions.HttpProxyConnectionType extends Enum<HttpProxyOptions.HttpProxyConnectionType>
What kind of proxy connection to establish
-
-
Enum Constant Summary
Enum Constants Enum Constant Description Forwarding
Establish a forwarding-based connection through the proxy.Legacy
The legacy default connection type: (1) If Tls is being used to connect to the endpoint, use tunneling (2) otherwise use forwardingTunneling
Establish a tunneling-based connection through the proxy.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getValue()
static HttpProxyOptions.HttpProxyConnectionType
valueOf(String name)
Returns the enum constant of this type with the specified name.static HttpProxyOptions.HttpProxyConnectionType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
Legacy
public static final HttpProxyOptions.HttpProxyConnectionType Legacy
The legacy default connection type: (1) If Tls is being used to connect to the endpoint, use tunneling (2) otherwise use forwarding
-
Forwarding
public static final HttpProxyOptions.HttpProxyConnectionType Forwarding
Establish a forwarding-based connection through the proxy. It is invalid to use tls with a forwarding connection
-
Tunneling
public static final HttpProxyOptions.HttpProxyConnectionType Tunneling
Establish a tunneling-based connection through the proxy.
-
-
Method Detail
-
values
public static HttpProxyOptions.HttpProxyConnectionType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (HttpProxyOptions.HttpProxyConnectionType c : HttpProxyOptions.HttpProxyConnectionType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static HttpProxyOptions.HttpProxyConnectionType valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException
- if the argument is null
-
getValue
public int getValue()
-
-