Package com.linecorp.armeria.server
Enum Class RoutingStatus
- All Implemented Interfaces:
Serializable
,Comparable<RoutingStatus>
,java.lang.constant.Constable
A routing status of an incoming HTTP request.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionA CORS preflight request.The routing completed successfully.An"OPTIONS * HTTP/1.1"
request. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Returnstrue
if aRoute
must exist for the incoming HTTP request.static RoutingStatus
Returns the enum constant of this class with the specified name.static RoutingStatus[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
OK
The routing completed successfully. -
CORS_PREFLIGHT
A CORS preflight request. -
OPTIONS
An"OPTIONS * HTTP/1.1"
request.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException
- if the argument is null
-
routeMustExist
public boolean routeMustExist()Returnstrue
if aRoute
must exist for the incoming HTTP request.
-