Enum Class WebsocketState

java.lang.Object
java.lang.Enum<WebsocketState>
org.gnome.soup.WebsocketState
All Implemented Interfaces:
Serializable, Comparable<WebsocketState>, Constable, Enumeration

@Generated("org.javagi.JavaGI") public enum WebsocketState extends Enum<WebsocketState> implements Enumeration
The state of the WebSocket connection.
  • Enum Constant Details

    • OPEN

      public static final WebsocketState OPEN
      the connection is ready to send messages
    • CLOSING

      public static final WebsocketState CLOSING
      the connection is in the process of closing down; messages may be received, but not sent
    • CLOSED

      public static final WebsocketState CLOSED
      the connection is completely closed down
  • Method Details

    • values

      public static WebsocketState[] 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 WebsocketState 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
    • of

      public static WebsocketState of(int value)
      Create a new WebsocketState for the provided value
      Parameters:
      value - the enum value
      Returns:
      the enum for the provided value
    • getValue

      public int getValue()
      Get the numeric value of this enum
      Specified by:
      getValue in interface Enumeration
      Returns:
      the enum value
    • of

      public static WebsocketState of(MemorySegment address)
      Create a new WebsocketState for the value in the provided memory address.
      Parameters:
      address - the memory address holding a enum value
      Returns:
      the enum for the value in the provided memory address
    • getType

      public static @Nullable Type getType()
      Get the GType of the WebsocketState class.
      Returns:
      the GType