Package org.apache.tapestry5.http
Enum CorsHandlerResult
- All Implemented Interfaces:
Serializable
,Comparable<CorsHandlerResult>
,java.lang.constant.Constable
Enumeration that defines the possible outcomes of
CorsHandler.handle(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)
- Since:
- 5.8.2
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe next CorsHandler should be called.No other CorsHandler should be called and request processing should resume (i.e.The request processing should stop immediately. -
Method Summary
Modifier and TypeMethodDescriptionstatic CorsHandlerResult
Returns the enum constant of this type with the specified name.static CorsHandlerResult[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
CONTINUE_CORS_PROCESSING
The next CorsHandler should be called. Usually returned when the CORS handler didn't actually processed the request. -
CONTINUE_REQUEST_PROCESSING
No other CorsHandler should be called and request processing should resume (i.e. CorsHttpServletRequestFilter callsHttpServletRequestFilter.service(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, org.apache.tapestry5.http.services.HttpServletRequestHandler)
. Usually returned when the handler actually processed the request. -
STOP_REQUEST_PROCESSING
The request processing should stop immediately. Usually used with CORS preflight requests.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-