public static enum App.AllowedMethods extends Enum<App.AllowedMethods>
| Enum Constant and Description |
|---|
DELETE
Allows DELETE method only
|
EMPTY
Deny all requests (no access)
|
GET
Allows GET method only
|
GUEST
Allow unauthenticated requests (guest access)
|
PATCH
ALlows PATCH method only
|
POST
Allows POST method only
|
PUT
Allows PUT method only
|
READ_ONLY
Allows read methods: GET, same as
GET |
READ_WRITE
Allows all HTTP methods (full access)
|
WRITE_ONLY
Allows write methods: POST, PUT, PATCH and DELETE
|
| Modifier and Type | Field and Description |
|---|---|
static EnumSet<App.AllowedMethods> |
ALL |
static EnumSet<App.AllowedMethods> |
ALL_EXCEPT_DELETE |
static EnumSet<App.AllowedMethods> |
NONE |
static EnumSet<App.AllowedMethods> |
READ |
static EnumSet<App.AllowedMethods> |
READ_AND_WRITE |
static EnumSet<App.AllowedMethods> |
WRITE |
| Modifier and Type | Method and Description |
|---|---|
static App.AllowedMethods |
fromString(String value) |
String |
toString() |
static App.AllowedMethods |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static App.AllowedMethods[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final App.AllowedMethods GUEST
public static final App.AllowedMethods EMPTY
public static final App.AllowedMethods READ_WRITE
public static final App.AllowedMethods GET
public static final App.AllowedMethods POST
public static final App.AllowedMethods PUT
public static final App.AllowedMethods PATCH
public static final App.AllowedMethods DELETE
public static final App.AllowedMethods READ_ONLY
GETpublic static final App.AllowedMethods WRITE_ONLY
public static final EnumSet<App.AllowedMethods> ALL
public static final EnumSet<App.AllowedMethods> READ_AND_WRITE
public static final EnumSet<App.AllowedMethods> READ
public static final EnumSet<App.AllowedMethods> WRITE
public static final EnumSet<App.AllowedMethods> ALL_EXCEPT_DELETE
public static final EnumSet<App.AllowedMethods> NONE
public static App.AllowedMethods[] values()
for (App.AllowedMethods c : App.AllowedMethods.values()) System.out.println(c);
public static App.AllowedMethods 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 App.AllowedMethods fromString(String value)
public String toString()
toString in class Enum<App.AllowedMethods>Copyright © 2016 Erudika. All rights reserved.