Enum Class MessageParser.Result

java.lang.Object
java.lang.Enum<MessageParser.Result>
org.eclipse.jetty.http3.parser.MessageParser.Result
All Implemented Interfaces:
Serializable, Comparable<MessageParser.Result>, Constable
Enclosing class:
MessageParser

public static enum MessageParser.Result extends Enum<MessageParser.Result>
  • Enum Constant Details

    • NO_FRAME

      public static final MessageParser.Result NO_FRAME
      Indicates that no frame was parsed, either for lack of bytes, or because or errors.
    • FRAME

      public static final MessageParser.Result FRAME
      Indicates that a frame was parsed.
    • BLOCKED_FRAME

      public static final MessageParser.Result BLOCKED_FRAME
      Indicates that a frame was parsed but its notification was deferred. This is the case of HEADERS frames that are waiting to be unblocked.
    • SWITCH_MODE

      public static final MessageParser.Result SWITCH_MODE
      Indicates that a DATA frame was expected, but a HEADERS was found instead.
  • Method Details

    • values

      public static MessageParser.Result[] 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 MessageParser.Result 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