public enum CORSRequestType extends Enum<CORSRequestType>
| Enum Constant and Description |
|---|
ACTUAL |
INVALID_CORS |
NOT_CORS |
PRE_FLIGHT |
SIMPLE |
| Modifier and Type | Method and Description |
|---|---|
boolean |
isCORS() |
boolean |
isPreflight() |
static CORSRequestType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static CORSRequestType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CORSRequestType SIMPLE
public static final CORSRequestType ACTUAL
public static final CORSRequestType PRE_FLIGHT
public static final CORSRequestType NOT_CORS
public static final CORSRequestType INVALID_CORS
public static CORSRequestType[] values()
for (CORSRequestType c : CORSRequestType.values()) System.out.println(c);
public static CORSRequestType 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 boolean isCORS()
public boolean isPreflight()
Copyright © 2015. All Rights Reserved.