Package com.crawljax.core.configuration
Enum ProxyConfiguration.ProxyType
- java.lang.Object
-
- java.lang.Enum<ProxyConfiguration.ProxyType>
-
- com.crawljax.core.configuration.ProxyConfiguration.ProxyType
-
- All Implemented Interfaces:
Serializable,Comparable<ProxyConfiguration.ProxyType>
- Enclosing class:
- ProxyConfiguration
public static enum ProxyConfiguration.ProxyType extends Enum<ProxyConfiguration.ProxyType>
Type of proxy this is.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description AUTOMATICUse an automatically configured proxy (using a pax file for example).MANUALUse a manually configured proxy (using your ProxyConfiguration object).NOTHINGDon't use a proxy at all.SYSTEM_DEFAULTUse the proxy that is configured for your computer (system wide).
-
Field Summary
Fields Modifier and Type Field Description private intvalue
-
Constructor Summary
Constructors Modifier Constructor Description privateProxyType(int value)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description inttoInt()Converts the enum to an int (used by Firefox internally).static ProxyConfiguration.ProxyTypevalueOf(String name)Returns the enum constant of this type with the specified name.static ProxyConfiguration.ProxyType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
NOTHING
public static final ProxyConfiguration.ProxyType NOTHING
Don't use a proxy at all.
-
MANUAL
public static final ProxyConfiguration.ProxyType MANUAL
Use a manually configured proxy (using your ProxyConfiguration object).
-
AUTOMATIC
public static final ProxyConfiguration.ProxyType AUTOMATIC
Use an automatically configured proxy (using a pax file for example).
-
SYSTEM_DEFAULT
public static final ProxyConfiguration.ProxyType SYSTEM_DEFAULT
Use the proxy that is configured for your computer (system wide).
-
-
Method Detail
-
values
public static ProxyConfiguration.ProxyType[] 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 (ProxyConfiguration.ProxyType c : ProxyConfiguration.ProxyType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ProxyConfiguration.ProxyType 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
-
toInt
public int toInt()
Converts the enum to an int (used by Firefox internally).- Returns:
- The int representation of the enum value.
-
-