public enum FirewallPolicy extends Enum<FirewallPolicy>
| Enum Constant and Description |
|---|
ALLOW
allow packets of this type to pass through the firewall
|
DROP
drop packets of this type
|
UNRECOGNIZED |
| Modifier and Type | Method and Description |
|---|---|
static FirewallPolicy |
fromValue(String policy) |
String |
toString() |
String |
value() |
static FirewallPolicy |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static FirewallPolicy[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final FirewallPolicy DROP
public static final FirewallPolicy ALLOW
public static final FirewallPolicy UNRECOGNIZED
public static FirewallPolicy[] values()
for (FirewallPolicy c : FirewallPolicy.values()) System.out.println(c);
public static FirewallPolicy valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant
with the specified nameNullPointerException - if the argument is nullpublic String value()
public String toString()
toString in class Enum<FirewallPolicy>public static FirewallPolicy fromValue(String policy)
Copyright © 2009-2014 The Apache Software Foundation. All Rights Reserved.