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).
|
OWN
Restrict access to objects with creatorid matching that of auth user.
|
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
All methods allowed.
|
static EnumSet<App.AllowedMethods> |
ALL_EXCEPT_DELETE
All methods allowed, except DELETE.
|
static EnumSet<App.AllowedMethods> |
NONE
No methods allowed.
|
static EnumSet<App.AllowedMethods> |
READ
Only GET is allowed.
|
static EnumSet<App.AllowedMethods> |
READ_AND_WRITE
All methods allowed (*).
|
static EnumSet<App.AllowedMethods> |
WRITE
All methods allowed, except GET.
|
| Modifier and Type | Method and Description |
|---|---|
static App.AllowedMethods |
fromString(String value)
Constructs the enum from a 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 OWN
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
GET.public 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)
value - a method name, or ?,wpublic String toString()
toString in class Enum<App.AllowedMethods>Copyright © 2018 Erudika. All rights reserved.