public enum CORSRequestType extends Enum<CORSRequestType>
| Enum Constant and Description |
|---|
ACTUAL
Simple / actual CORS request.
|
OTHER
Other (non-CORS) request.
|
PREFLIGHT
Preflight CORS request.
|
| Modifier and Type | Method and Description |
|---|---|
static CORSRequestType |
detect(javax.servlet.http.HttpServletRequest request)
Detects the CORS type of the specified HTTP request.
|
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 ACTUAL
public static final CORSRequestType PREFLIGHT
public static final CORSRequestType OTHER
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 static CORSRequestType detect(javax.servlet.http.HttpServletRequest request)
request - The HTTP request to check. Must not be null.Copyright © 2021. All rights reserved.