Top Description Fields Constructors Methods
waffle.util

public final Class CorsPreFlightCheck

extends Object
Class Inheritance
Imports
java.util.ArrayList, .Arrays, .List, javax.servlet.http.HttpServletRequest, org.slf4j.Logger, .LoggerFactory

The Class CorsPrefFlightCheck.

Field Summary

Modifier and TypeField and Description
private static final List<String>
CORS_PRE_FLIGHT_HEADERS

The Constant CORS_PRE_FLIGHT_HEADERS.

private static final Logger
LOGGER

The logger.

private static final String
PRE_FLIGHT_ATTRIBUTE_VALUE

The Constant preflightAttributeValue.

Constructor Summary

AccessConstructor and Description
private
CorsPreFlightCheck()

Prevent Instantiation.

Method Summary

Modifier and TypeMethod and Description
public static boolean

Returns:

true, if is preflight
isPreflight
(final HttpServletRequest
the request
request
)

Checks if is preflight.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

CORS_PRE_FLIGHT_HEADERSback to summary
private static final List<String> CORS_PRE_FLIGHT_HEADERS

The Constant CORS_PRE_FLIGHT_HEADERS.

LOGGERback to summary
private static final Logger LOGGER

The logger.

PRE_FLIGHT_ATTRIBUTE_VALUEback to summary
private static final String PRE_FLIGHT_ATTRIBUTE_VALUE

The Constant preflightAttributeValue.

Constructor Detail

CorsPreFlightCheckback to summary
private CorsPreFlightCheck()

Prevent Instantiation.

Method Detail

isPreflightback to summary
public static boolean isPreflight(final HttpServletRequest request)

Checks if is preflight.

Parameters
request:HttpServletRequest

the request

Returns:boolean

true, if is preflight