Enum Proxy.ProxyState
- java.lang.Object
-
- java.lang.Enum<Proxy.ProxyState>
-
- com.microsoft.azure.proton.transport.proxy.Proxy.ProxyState
-
- All Implemented Interfaces:
Serializable,Comparable<Proxy.ProxyState>
- Enclosing interface:
- Proxy
public static enum Proxy.ProxyState extends Enum<Proxy.ProxyState>
States that the proxy can be in.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description PN_PROXY_CHALLENGE3.PN_PROXY_CHALLENGE_RESPONDED4.PN_PROXY_CONNECTED5.PN_PROXY_CONNECTING2.PN_PROXY_FAILEDThere has been a failure connecting to proxy.PN_PROXY_NOT_STARTED1.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Proxy.ProxyStatevalueOf(String name)Returns the enum constant of this type with the specified name.static Proxy.ProxyState[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
PN_PROXY_NOT_STARTED
public static final Proxy.ProxyState PN_PROXY_NOT_STARTED
1. No connection to proxy has been made.
-
PN_PROXY_CONNECTING
public static final Proxy.ProxyState PN_PROXY_CONNECTING
2. Sent initial CONNECT request to proxy.
-
PN_PROXY_CHALLENGE
public static final Proxy.ProxyState PN_PROXY_CHALLENGE
3. Proxy has responded with a Proxy-Authorization challenge.
-
PN_PROXY_CHALLENGE_RESPONDED
public static final Proxy.ProxyState PN_PROXY_CHALLENGE_RESPONDED
4. Proxy has responded with a Proxy-Authorization challenge.
-
PN_PROXY_CONNECTED
public static final Proxy.ProxyState PN_PROXY_CONNECTED
5. Proxy has responded with a Proxy-Authorization challenge.
-
PN_PROXY_FAILED
public static final Proxy.ProxyState PN_PROXY_FAILED
There has been a failure connecting to proxy.
-
-
Method Detail
-
values
public static Proxy.ProxyState[] 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 (Proxy.ProxyState c : Proxy.ProxyState.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Proxy.ProxyState 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
-
-