Enum Class GraphQlWebSocketMessageType

java.lang.Object
java.lang.Enum<GraphQlWebSocketMessageType>
org.springframework.graphql.server.support.GraphQlWebSocketMessageType
All Implemented Interfaces:
Serializable, Comparable<GraphQlWebSocketMessageType>, Constable

public enum GraphQlWebSocketMessageType extends Enum<GraphQlWebSocketMessageType>
Enum for a message type as defined in the GraphQL over WebSocket spec proposal.
Since:
1.0.0
Author:
Rossen Stoyanchev
See Also:
  • Enum Constant Details

  • Method Details

    • values

      public static GraphQlWebSocketMessageType[] 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 GraphQlWebSocketMessageType 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
    • value

      public String value()
      The protocol value for the message type.
    • doesNotRequirePayload

      public boolean doesNotRequirePayload()
      Return if the message type has a payload, and it is required.
    • fromValue

      public static GraphQlWebSocketMessageType fromValue(String value)
    • toString

      public String toString()
      Overrides:
      toString in class Enum<GraphQlWebSocketMessageType>