protected static enum HeaderFilter.CORSRequestType extends java.lang.Enum<HeaderFilter.CORSRequestType>
| 枚举常量和说明 |
|---|
ACTUAL
A HTTP request that needs to be pre-flighted.
|
INVALID_CORS
An invalid CORS request, i.e. it qualifies to be a CORS request, but
fails to be a valid one.
|
NOT_CORS
Not a CORS request, but a normal request.
|
PRE_FLIGHT
A pre-flight CORS request, to get meta information, before a
non-simple HTTP request is sent.
|
SIMPLE
A simple HTTP request, i.e. it shouldn't be pre-flighted.
|
| 限定符和类型 | 方法和说明 |
|---|---|
static HeaderFilter.CORSRequestType |
valueOf(java.lang.String name)
返回带有指定名称的该类型的枚举常量。
|
static HeaderFilter.CORSRequestType[] |
values()
按照声明该枚举类型的常量的顺序, 返回
包含这些常量的数组。
|
public static final HeaderFilter.CORSRequestType SIMPLE
public static final HeaderFilter.CORSRequestType ACTUAL
public static final HeaderFilter.CORSRequestType PRE_FLIGHT
public static final HeaderFilter.CORSRequestType NOT_CORS
public static final HeaderFilter.CORSRequestType INVALID_CORS
public static HeaderFilter.CORSRequestType[] values()
for (HeaderFilter.CORSRequestType c : HeaderFilter.CORSRequestType.values()) System.out.println(c);
public static HeaderFilter.CORSRequestType valueOf(java.lang.String name)
name - 要返回的枚举常量的名称。java.lang.IllegalArgumentException - 如果该枚举类型没有带有指定名称的常量java.lang.NullPointerException - 如果参数为空值