public static enum ByMethodsRule.Standard extends Enum<ByMethodsRule.Standard> implements RtRule
RtRule.All, RtRule.Any, RtRule.ByHeader, RtRule.ByMethod, RtRule.ByPath, RtRule.Multiple, RtRule.Wrap| Enum Constant and Description |
|---|
ALL_READ
All common read methods.
|
ALL_WRITE
All common write methods.
|
DELETE
Rule for
DELETE method. |
GET
Rule for
GET method. |
POST
Rule for
POST method. |
PUT
Rule for
PUT method. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
apply(String line,
Iterable<Map.Entry<String,String>> headers)
Apply this rule to request.
|
static ByMethodsRule.Standard |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ByMethodsRule.Standard[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ByMethodsRule.Standard GET
GET method.public static final ByMethodsRule.Standard POST
POST method.public static final ByMethodsRule.Standard PUT
PUT method.public static final ByMethodsRule.Standard DELETE
DELETE method.public static final ByMethodsRule.Standard ALL_READ
public static final ByMethodsRule.Standard ALL_WRITE
public static ByMethodsRule.Standard[] values()
for (ByMethodsRule.Standard c : ByMethodsRule.Standard.values()) System.out.println(c);
public static ByMethodsRule.Standard 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 nullCopyright © 2012–2020 jcabi.com. All rights reserved.