Enum Class RoutingStatus

java.lang.Object
java.lang.Enum<RoutingStatus>
com.linecorp.armeria.server.RoutingStatus
All Implemented Interfaces:
Serializable, Comparable<RoutingStatus>, Constable

@UnstableApi public enum RoutingStatus extends Enum<RoutingStatus>
A routing status of an incoming HTTP request.
  • Enum Constant Details

    • OK

      public static final RoutingStatus OK
      The routing completed successfully.
    • CORS_PREFLIGHT

      public static final RoutingStatus CORS_PREFLIGHT
      A CORS preflight request.
    • OPTIONS

      public static final RoutingStatus OPTIONS
      An "OPTIONS * HTTP/1.1" request.
  • Method Details

    • values

      public static RoutingStatus[] 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

      public static RoutingStatus valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • routeMustExist

      public boolean routeMustExist()
      Returns true if a Route must exist for the incoming HTTP request.