public enum MethodRule extends java.lang.Enum<MethodRule>
| Modifier and Type | Method and Description |
|---|---|
boolean |
test(java.lang.String method) |
static MethodRule |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static MethodRule[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final MethodRule GET
public static final MethodRule PUT
public static final MethodRule POST
public static final MethodRule PUTPOST
public static final MethodRule DELETE
public static MethodRule[] values()
for (MethodRule c : MethodRule.values()) System.out.println(c);
public static MethodRule 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 boolean test(java.lang.String method)
Copyright © 2016 Richard Thurston. All Rights Reserved.