public static enum HttpMethodOverrideFilter.Source extends Enum<HttpMethodOverrideFilter.Source>
| Enum Constant and Description |
|---|
HEADER
If present in the filter configuration,
causes the filter to look for a method override in the X-HTTP-Method-Override header.
|
QUERY
If present in the filter configuration,
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 HttpMethodOverrideFilter.Source |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static HttpMethodOverrideFilter.Source[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final HttpMethodOverrideFilter.Source HEADER
public static final HttpMethodOverrideFilter.Source QUERY
public static HttpMethodOverrideFilter.Source[] values()
for (HttpMethodOverrideFilter.Source c : HttpMethodOverrideFilter.Source.values()) System.out.println(c);
public static HttpMethodOverrideFilter.Source 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 int getFlag()
public boolean isPresentIn(int config)
true if the bit corresponding to this flag is set in a given integer value.config - integer value to check for the bit corresponding to this flag.true if the passed value has the bit corresponding to this flag set.Copyright © 2007-2024, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.