public static enum PostReplaceFilter.ConfigFlag extends java.lang.Enum<PostReplaceFilter.ConfigFlag>
Enum Constant and Description |
---|
HEADER
If added to the config, causes the filter to look for a method override in the X-HTTP-Method-Override header
|
QUERY
If added to the config, causes the filter to look for a method override in the _method query parameter
|
Modifier and Type | Method and Description |
---|---|
int |
getFlag()
Returns the numeric value of the bit corresponding to this flag.
|
boolean |
isPresentIn(int config)
Returns true if the bit corresponding to this flag is set in a given integer value
|
static PostReplaceFilter.ConfigFlag |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static PostReplaceFilter.ConfigFlag[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PostReplaceFilter.ConfigFlag HEADER
public static final PostReplaceFilter.ConfigFlag QUERY
public static PostReplaceFilter.ConfigFlag[] values()
for (PostReplaceFilter.ConfigFlag c : PostReplaceFilter.ConfigFlag.values()) System.out.println(c);
public static PostReplaceFilter.ConfigFlag valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic int getFlag()
public boolean isPresentIn(int config)
config
- Integer value to check for the bit corresponding to this flagCopyright © 2016 Oracle Corporation. All Rights Reserved.