Package com.aspectran.web.support.cors
Class CorsException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- com.aspectran.web.support.cors.CorsException
-
- All Implemented Interfaces:
java.io.Serializable
public class CorsException extends java.lang.ExceptionProcess an incoming cross-origin (CORS) requests. Encapsulates the CORS processing logic as specified by the W3C candidate recommendation from 2013-01-29.- Since:
- 2.3.0
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static CorsExceptionINVALID_ACTUAL_REQUESTInvalid simple / actual request.static CorsExceptionINVALID_PREFLIGHT_REQUESTInvalid preflight request.static CorsExceptionMISSING_ACCESS_CONTROL_REQUEST_METHOD_HEADERMissing Access-Control-Request-Method header.static CorsExceptionORIGIN_DENIEDCORS origin denied exception.static CorsExceptionUNSUPPORTED_METHODUnsupported HTTP method.static CorsExceptionUNSUPPORTED_REQUEST_HEADERUnsupported HTTP request header.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetHttpStatusCode()Returns the associated HTTP status code.
-
-
-
Field Detail
-
ORIGIN_DENIED
public static final CorsException ORIGIN_DENIED
CORS origin denied exception.
-
UNSUPPORTED_METHOD
public static final CorsException UNSUPPORTED_METHOD
Unsupported HTTP method.
-
UNSUPPORTED_REQUEST_HEADER
public static final CorsException UNSUPPORTED_REQUEST_HEADER
Unsupported HTTP request header.
-
INVALID_ACTUAL_REQUEST
public static final CorsException INVALID_ACTUAL_REQUEST
Invalid simple / actual request.
-
INVALID_PREFLIGHT_REQUEST
public static final CorsException INVALID_PREFLIGHT_REQUEST
Invalid preflight request.
-
MISSING_ACCESS_CONTROL_REQUEST_METHOD_HEADER
public static final CorsException MISSING_ACCESS_CONTROL_REQUEST_METHOD_HEADER
Missing Access-Control-Request-Method header.
-
-