Package java.net
Enum Proxy.Type
- All Implemented Interfaces:
Serializable,Comparable<Proxy.Type>
- Enclosing class:
- Proxy
public static enum Proxy.Type extends Enum<Proxy.Type>
Enum class for the proxy type. Possible options are
DIRECT, HTTP and SOCKS.-
Enum Constant Summary
-
Method Summary
Modifier and Type Method Description static Proxy.TypevalueOf(String name)Returns the enum constant of this type with the specified name.static Proxy.Type[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
DIRECT
Direct connection. Connect without any proxy. -
HTTP
HTTP type proxy. It's often used by protocol handlers such as HTTP, HTTPS and FTP. -
SOCKS
SOCKS type proxy.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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
-