public static enum CORSRule.AllowedMethods extends Enum<CORSRule.AllowedMethods>
| 限定符和类型 | 方法和说明 |
|---|---|
static CORSRule.AllowedMethods |
fromValue(String allowedMethod) |
String |
toString() |
static CORSRule.AllowedMethods |
valueOf(String name)
返回带有指定名称的该类型的枚举常量。
|
static CORSRule.AllowedMethods[] |
values()
按照声明该枚举类型的常量的顺序, 返回
包含这些常量的数组。
|
public static final CORSRule.AllowedMethods GET
public static final CORSRule.AllowedMethods PUT
public static final CORSRule.AllowedMethods HEAD
public static final CORSRule.AllowedMethods POST
public static final CORSRule.AllowedMethods DELETE
public static CORSRule.AllowedMethods[] values()
for (CORSRule.AllowedMethods c : CORSRule.AllowedMethods.values()) System.out.println(c);
public static CORSRule.AllowedMethods valueOf(String name)
name - 要返回的枚举常量的名称。IllegalArgumentException - 如果该枚举类型没有带有指定名称的常量NullPointerException - 如果参数为空值public String toString()
toString 在类中 Enum<CORSRule.AllowedMethods>public static CORSRule.AllowedMethods fromValue(String allowedMethod) throws IllegalArgumentException
Copyright © 2017. All rights reserved.