Package com.facilita.fc.web
Enum HostFilteringMode
- java.lang.Object
-
- java.lang.Enum<HostFilteringMode>
-
- com.facilita.fc.web.HostFilteringMode
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<HostFilteringMode>
public enum HostFilteringMode extends java.lang.Enum<HostFilteringMode>
Describes the modes available for filtering hosts.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ALLOWLIST
Only follow requests to hosts that have been explicitly included by calls toWebBrowser.includeHost(String)
orWebBrowser.includeHostRegexp(String)
.BLOCKLIST
Follow requests to all hosts, except those that have been explicitly excluded by calls toWebBrowser.ignoreHost(String)
orWebBrowser.ignoreHostRegexp(String)
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static HostFilteringMode
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static HostFilteringMode[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ALLOWLIST
public static final HostFilteringMode ALLOWLIST
Only follow requests to hosts that have been explicitly included by calls toWebBrowser.includeHost(String)
orWebBrowser.includeHostRegexp(String)
.
-
BLOCKLIST
public static final HostFilteringMode BLOCKLIST
Follow requests to all hosts, except those that have been explicitly excluded by calls toWebBrowser.ignoreHost(String)
orWebBrowser.ignoreHostRegexp(String)
-
-
Method Detail
-
values
public static HostFilteringMode[] 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 (HostFilteringMode c : HostFilteringMode.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static HostFilteringMode 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
-
-