Package com.github.markusbernhardt.proxy
Enum ProxySearch.Strategy
- java.lang.Object
-
- java.lang.Enum<ProxySearch.Strategy>
-
- com.github.markusbernhardt.proxy.ProxySearch.Strategy
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<ProxySearch.Strategy>
- Enclosing class:
- ProxySearch
public static enum ProxySearch.Strategy extends java.lang.Enum<ProxySearch.Strategy>
Types of proxy detection supported by the builder.
-
-
Constructor Summary
Constructors Modifier Constructor Description private
Strategy()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ProxySearch.Strategy
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static ProxySearch.Strategy[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
OS_DEFAULT
public static final ProxySearch.Strategy OS_DEFAULT
-
WPAD
public static final ProxySearch.Strategy WPAD
-
BROWSER
public static final ProxySearch.Strategy BROWSER
-
FIREFOX
public static final ProxySearch.Strategy FIREFOX
-
IE
public static final ProxySearch.Strategy IE
-
ENV_VAR
public static final ProxySearch.Strategy ENV_VAR
-
WIN
public static final ProxySearch.Strategy WIN
-
KDE
public static final ProxySearch.Strategy KDE
-
GNOME
public static final ProxySearch.Strategy GNOME
-
JAVA
public static final ProxySearch.Strategy JAVA
-
-
Method Detail
-
values
public static ProxySearch.Strategy[] 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 (ProxySearch.Strategy c : ProxySearch.Strategy.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ProxySearch.Strategy valueOf(java.lang.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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
-