Module swim.ws
Package swim.ws

Enum WsOpcode

    • Enum Constant Detail

      • CONTINUATION

        public static final WsOpcode CONTINUATION
      • TEXT

        public static final WsOpcode TEXT
      • BINARY

        public static final WsOpcode BINARY
      • RESERVED_3

        public static final WsOpcode RESERVED_3
      • RESERVED_4

        public static final WsOpcode RESERVED_4
      • RESERVED_5

        public static final WsOpcode RESERVED_5
      • RESERVED_6

        public static final WsOpcode RESERVED_6
      • RESERVED_7

        public static final WsOpcode RESERVED_7
      • CLOSE

        public static final WsOpcode CLOSE
      • PING

        public static final WsOpcode PING
      • PONG

        public static final WsOpcode PONG
      • RESERVED_B

        public static final WsOpcode RESERVED_B
      • RESERVED_C

        public static final WsOpcode RESERVED_C
      • RESERVED_D

        public static final WsOpcode RESERVED_D
      • RESERVED_E

        public static final WsOpcode RESERVED_E
      • RESERVED_F

        public static final WsOpcode RESERVED_F
    • Field Detail

      • code

        public final int code
    • Method Detail

      • values

        public static WsOpcode[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (WsOpcode c : WsOpcode.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static WsOpcode valueOf​(String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified name
        NullPointerException - if the argument is null
      • isData

        public boolean isData()
      • isControl

        public boolean isControl()
      • isReserved

        public boolean isReserved()
      • isContinuation

        public boolean isContinuation()
      • isText

        public boolean isText()
      • isBinary

        public boolean isBinary()
      • isClose

        public boolean isClose()
      • isPing

        public boolean isPing()
      • isPong

        public boolean isPong()
      • debug

        public <T> Output<T> debug​(Output<T> output)
        Description copied from interface: Debug
        Writes a developer readable, debug-formatted string representation of this object to output.
        Specified by:
        debug in interface Debug
        Returns:
        the continuation of the output.
      • from

        public static WsOpcode from​(int code)