public static enum AccessRule.Type extends Enum<AccessRule.Type>
Enum Constant and Description |
---|
ALLOW
Specifies rules that will always take precedence over rules with the DENY type.
|
DENY
Specifies rules to which traffic can be denied.
|
UNRECOGNIZED |
Modifier and Type | Method and Description |
---|---|
static AccessRule.Type |
fromValue(String type) |
static AccessRule.Type |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static AccessRule.Type[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final AccessRule.Type ALLOW
public static final AccessRule.Type DENY
public static final AccessRule.Type UNRECOGNIZED
public static AccessRule.Type[] values()
for (AccessRule.Type c : AccessRule.Type.values()) System.out.println(c);
public static AccessRule.Type 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 static AccessRule.Type fromValue(String type)
Copyright © 2009-2018 The Apache Software Foundation. All Rights Reserved.