|
Apache Tomcat 7.0.41 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<CorsFilter.CORSRequestType>
org.apache.catalina.filters.CorsFilter.CORSRequestType
protected static enum CorsFilter.CORSRequestType
Enumerates varies types of CORS requests. Also, provides utility methods to determine the request type.
Enum Constant Summary | |
---|---|
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. |
Method Summary | |
---|---|
static CorsFilter.CORSRequestType |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static CorsFilter.CORSRequestType[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final CorsFilter.CORSRequestType SIMPLE
public static final CorsFilter.CORSRequestType ACTUAL
public static final CorsFilter.CORSRequestType PRE_FLIGHT
public static final CorsFilter.CORSRequestType NOT_CORS
public static final CorsFilter.CORSRequestType INVALID_CORS
Method Detail |
---|
public static CorsFilter.CORSRequestType[] values()
for (CorsFilter.CORSRequestType c : CorsFilter.CORSRequestType.values()) System.out.println(c);
public static CorsFilter.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 name
NullPointerException
- if the argument is null
|
Apache Tomcat 7.0.41 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |