com.baidubce.services.bos.model
Enum AllowedMethods
java.lang.Object
java.lang.Enum<AllowedMethods>
com.baidubce.services.bos.model.AllowedMethods
- All Implemented Interfaces:
- Serializable, Comparable<AllowedMethods>
public enum AllowedMethods
- extends Enum<AllowedMethods>
For Bucket CORS(Cross-Origin Resource Sharing).
Specifying a method for allowing cross-domain requests.
Type: Enumeration,with values GET, PUT, DELETE,POST,HEAD.
Method Summary |
static AllowedMethods |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static AllowedMethods[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared. |
GET
public static final AllowedMethods GET
PUT
public static final AllowedMethods PUT
DELETE
public static final AllowedMethods DELETE
POST
public static final AllowedMethods POST
HEAD
public static final AllowedMethods HEAD
values
public static AllowedMethods[] values()
- Returns an array containing the constants of this enum type, in
the order they are declared. This method may be used to iterate
over the constants as follows:
for (AllowedMethods c : AllowedMethods.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static AllowedMethods valueOf(String name)
- Returns the enum constant of this type with the specified name.
The string must match exactly an identifier used to declare an
enum constant in this type. (Extraneous whitespace characters are
not permitted.)
- Parameters:
name
- the name of the enum constant to be returned.
- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant
with the specified name
NullPointerException
- if the argument is null
Copyright © 2018. All rights reserved.