Enum Class PayloadExchangeType

java.lang.Object
java.lang.Enum<PayloadExchangeType>
org.springframework.security.rsocket.api.PayloadExchangeType
All Implemented Interfaces:
Serializable, Comparable<PayloadExchangeType>, Constable

public enum PayloadExchangeType extends Enum<PayloadExchangeType>
Since:
5.2
  • Enum Constant Details

  • Method Details

    • values

      public static PayloadExchangeType[] 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 PayloadExchangeType 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
    • isRequest

      public boolean isRequest()
      Determines if this exchange is a type of request (i.e. the initial frame).
      Returns:
      true if it is a request, else false